Sunday, October 12, 2008

export firefox 3 cookies to cookies.txt file

Firefox 3 stores cookies in a SQL database. Having the cookies in a simple cookies.txt file can be helpful for using wget --load-cookies.

A python script to convert the SQL database cookies to the simple text file format can be found here. The corresponding original blog post (German only) is here.

The comments for the blog post above also mention a more advanced version with option parsing.

6 comments:

Anonymous said...

Thanks. The script saved me...

Perhaps someday I'll write a similar one to convert Safari cookies into cookies.txt format...

Barun Saha said...

Oh, great! I was just thinking to write some script myself :)

Anonymous said...

There's an Export Cookies Add-On that does the same thing.

Anonymous said...

The link required log in can you please share it on public accessible site, thank you.

leo said...

malwkgad, indeed, the link seems to have gone. I've updated the links, now with the original source. Thanks for noting this!

Anonymous said...

The 'Eport Domain Cookies' Add-on worked for me. ff 3.5.6, wget 1.11