-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Donald Allen wrote: > There was a recent discussion concerning using wget to obtain pages > from yahoo logged into yahoo as a particular user. Micah replied to > Rick Nakroshis with instructions describing two methods for doing > this. This information has also been added by Micah to the wiki. > > I just tried the simpler of the two methods -- logging into yahoo with > my browser (Firefox 22.214.171.124) and then downloading a page with > > wget --output-document=/tmp/yahoo/yahoo.htm --load-cookies <my home > directory>/.mozilla/firefox/id2dmo7r.default/cookies.txt > 'http://<yahoo url>' > > The page I get is what would be obtained if an un-logged-in user went > to the specified url. Opening that same url in Firefox *does* > correctly indicate that it is logged in as me and reflects my > customizations.
Are you signing into the main Yahoo! site? When I try to do so, whether I use the cookies or no, I get a message about "update your browser to something more modern" or the like. The difference appears to be a combination of _both_ User-Agent (as you've done), _and_ --header "Accept-Encodings: gzip,deflate". This plus appropriate cookies gets me a decent logged-in page, but of course it's gzip-compressed. Since Wget doesn't currently support gzip-decoding and the like, that makes the use of Wget in this situation cumbersome. Support for something like this probably won't be seen until 1.13 or 1.14, I'm afraid. - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer. GNU Maintainer: wget, screen, teseq http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIxdw77M8hyUobTrERAi/QAJ0atPMeUQ/0YCNwAP+XiH4nDyvclwCcDxYo obud0CjpATBYDvA0eS3ZHGY= =vv4R -----END PGP SIGNATURE-----