5 ms·
Here is a simple little Python script that uses BeautifulSoup and requests to download all the books from the purchased books page. http://paste.openstack.org/
by graton 9y ago
Here is a simple little Python script that uses BeautifulSoup and requests to download all the books from the purchased books page.
http://paste.openstack.org/show/625665/ http://paste.openstack.org/show/625665/
You of course need to have purchased the books to access that page :)
Using Firefox, I do: File->Save Page As
Then save it. Rename the *.html file to index.html and then run the script.
http://paste.openstack.org/show/625665/ http://paste.openstack.org/show/625665/
I did this because I was too lazy to click Save As 30+ times :)
- chamakits 9y agoI created a bookmarklet, for the same reasons, which downloads a handful at a time. https://gist.github.com/chamakits/a0980ea8ce4d085426525df14275b042 https://gist.github.com/chamakits/a0980ea8ce4d085426525df142... You'll need to click it a couple of times since I on purpose made it download a couple at a time. Or you could put a really large number on the variable if you want, or call it from the console after running the bookmarklet.
- dschep 9y agoDrag and drop install: https://dschep.github.io/GistMarklets/#080dc9a018d03765d7cf82c3f599e9a2 https://dschep.github.io/GistMarklets/#080dc9a018d03765d7cf8...
- jdormit 9y agoWorks like a charm! Thanks!
- suramya_tomar 9y agoAwesome.. Thanks for sharing. I was planning to write a script to do the exact same thing so you have saved me some effort.
- trentmb 9y ago$('div.download a.a').click(); in the chrome console also works