views:

334

answers:

2

Does anyone have one? Ive tried Comicdownloader but that only lets me download the newest comic and I dont understand Python well enough to figure out how to change it to download all the comics

edit: Solved by anderstornvig thanks man

+4  A: 

Well, it's not python and the method is not very elegant either but it'll work.

After a brief inspection of the ctrl+alt+del archive site I found that all the comics are stored in /comics/ as jpg files.

With that assumption, running the following command in a shell on a *nix machine will download all comics. The filenames are obviously dates in the format YYYYMMDD.

$ for filename in $(seq 20020101 20090726); do wget http://www.ctrlaltdel-online.com/comics/"$filename".jpg; done

Oh, and it may take a while : ).

anderstornvig
+1 since the OP credited your solution w/out accepting your answer.
Matt
you can do this with curl: `curl http://ctrlaltdel-online.com/comics[20020101..20090726].jpg` This has the advantage that only one connection is made to the server, while your solution may be blocked and considered as a spammer spider. man curl for more details.
dalloliogm
dalloliogm: I tried your solution directly but I get an error. Then I tried it with "-" (as it says in the man) instead of ".." which will just fetch me a lot of HTML (index.html i guess). You may be right about the spammer spider though.
anderstornvig
+2  A: 

Well, there are several approaches. You could look at the urls of the comic images themselves, to see if they follow a pattern, write a small script to generate urls that match the pattern, and simply use wget or something similar to download them. To learn the requisite python, I recommend the python tutorial. Look specifically at ways of combining strings, string formatting, string operations, so you can build your URLs from component strings, numbers, and so forth. This sort of project may be a good excuse to learn python, which will probably help you with other things in the future. (and is FUN!)

Alternatively, I imagine that people have done this before - there almost certainly are apps out there that do what you want, given the urls of the images, or just the pattern of urls. Have a look around.

You could write to the author of the comic and ask if they are available in bulk somehow, possibly for purchase, maybe as a book. I imagine ctrl-alt-del is popular enough to simply absorb the added load of you downloading the entire archive, but smaller websites might not appreciate it - though I don't think they can really stop you or anything.

As for your question, this site should help you with your programming questions, help you with problems you're having, nudge you along the way - but mostly people don't appreciate it if you ask them to just write your code for you. Learn some python, try it yourself, if you run into any problems, ask then.

Markus