Parsing Firefox history.dat file?
Sir Light
sirlight at cox.net
Tue Jan 1 11:38:22 MST 2008
---- "Eric \"Shubes\"" <plug at shubes.net> wrote:
> Alan Dayley wrote:
> > I want to parse or convert to text the Firefox history.dat file. There
> > is apparently a Windows application called Dork that does it. But I'm
> > not on Windows. :^)
> >
> > All I want to do is extract a list of the URLs. I'm wading through
> > Google search results but it is probably faster to ask the group.
> >
> > Alan
> >
>
> Nice little exercise. I'm sure there are a myriad of ways to do this.
>
> This is what I came up with (from directory containing history.dat):
> $ tr -d '\\\n' <history.dat | tr ')' '\n' | grep =http:// | cut -d = -f 2-
> >history.urls
I just tried it on my firefox based history.dat file and it works. Kinda cool in seeing where my browser has been going. I saved the line as a script so that I can use it.
Jon
More information about the PLUG-discuss
mailing list