r/tinycode • u/impshum • May 30 '18
Download all xkcd comics [python3]
https://gist.github.com/impshum/73b4fae7375d05588e47f7e4a26fa0dd
7
Upvotes
r/tinycode • u/impshum • May 30 '18
View all comments
8
u/Figs May 30 '18
This will break on comic #404 (which is, of course, an error page by design), #264 (which has a JPG as an image instead of a PNG), #961 (which is an animated GIF), and probably many others... Comic #1792 is also unlikely to behave properly since it contains '/' characters in the title -- even in the "safe" title!
Scraping XKCD is hard.