Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Download All Xkcd.com Comics

DZone's Guide to

Download All Xkcd.com Comics

·
Free Resource
This goes through all the first 329 (you might want to change this) pages, downloading the comic strips.


#!/bin/bash

for i in `seq 1 329`
do
	wget http://xkcd.com/$i/
	wget `grep http://imgs.xkcd.com/comics/ index.html | head -1 | cut -d\" -f2`
	rm index.html
done
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}