Re:Coursera-dl – A script for downloading course material fr...
by joshmn on Thursday August 22, 2013 @10:43PM
(#6261403)
Even better, Chrome's developer options allows you to right click in the HAR and do a "Copy as CURL" which includes all the bells and whistles (headers, cookies) to throw it into terminal and start hacking away.
Re:Coursera-dl – A script for downloading course material fr...
by bloometal on Thursday August 22, 2013 @07:52PM
(#6260837)
This is awesome. But, does anyone know how to do this with `--save-cookies` command with wget?
Re:Coursera-dl – A script for downloading course material fr...
by codygman on Thursday August 22, 2013 @08:01PM
(#6260883)
I remember crafting something similar along the lines of this (incorrect argument names almost assuredly):
curl $url_that_has_cookies -c -
That will save the cookies to stdout, and IIRC you can pipe them to curl. I've done similar stuff with wget along the lines of just saving the cookies and then loading them within a single command.
But it's not so convenient. I'll have to try this in future.