Exporting Google Chrome cookies for wget usage: cookie.txt export – Google Chrome extension gallery
Posted by jpluimers on 2011/05/30
When using wget for downloading from the command-line, sometimes you need cookies in netscape file format.
There is a Chrome cookie.txt export extension that makes exporting your cookies in that format easy.
It opens a window that contains the cookies relevant to the domain of the currently opened web-page. You copy/paste your cookies in format like this:
# Cookies for domains related to wordpress.com.
# This content may be pasted into a cookies.txt file and used by wget
# Example: wget -x --load-cookies cookies.txt https://wiert.wordpress.com/wp-admin/post.php?post=5767&action=edit
#
en.forums.wordpress.com FALSE / FALSE 1304919940 TESTCOOKIE home
en.support.wordpress.com FALSE / FALSE 1304920249 TESTCOOKIE home
wiert.wordpress.com FALSE / FALSE 1304920561 TESTCOOKIE home
en.wordpress.com FALSE / FALSE 1304920572 TESTCOOKIE home
It even includes the wget command-line example for loading the cookies using the –load-cookies option :)
–jeroen






sasi said
actually where do i need to use that wget command.. had the text file..
jpluimers said
See other blog posts I wrote that contain wget: https://www.google.com/search?q=wget+site:wiert.me
jmdigne said
Thanks a lot for your trick, this save me a lot of time to do WordPress.com backup