Converting Netscape Cookies Files

Coding, Firefox — ryanfb @ 8:48 am

I’ve whipped up a short Perl script, available here, that converts a Netscape-style cookies file into the ELinks cookies format. This is useful for sites which have an image-based login captcha, so you can use Firefox to log in and then copy your cookies and have them in ELinks. Example usage:

./ns2elcookies.pl > ~/.elinks/cookies

By default, it does a find on ~/.mozilla/ for the first cookies.txt file it sees. You can also specify a cookies file as the first argument if that isn’t what you want. It should be fairly easy to modify the script so that it instead outputs in another browser’s cookie format, w3m for example.

1 Comment »

  1. Simply great!
    I use elinks on my old laptop (only 64 Mb of RAM), and I was very tired to wait for firefox each time I had to login into my account!

    Comment by Antonio — January 8, 2007 @ 3:09 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

(c) 2009 cryptosystem.org | powered by WordPress with Barecity