Search engine

Question by GIR:
How do I set up a Python script to download an entire website and store it in one directory?

I’m trying to set up a Python script to download all of the comics on xkcd.com and store them in “Desktop/xkcd” but I have no idea how to go about such a thing. Could I please have a tiny help?


——————————————

Answer by Colanth
Since you cannot locate all the files (they’re pngs and they have names, not just sequential numbers), you cannot just write code to download them all. You will have to write code to click the previous and next buttons to get all the comics, one at a time, then download each png file individually.

——————————————
Know better? Leave your own answer in the comments!