Web Comic Scraper

I wanted to find a new way to enjoy my favorite web comics without the need for an Internet Connection. Plus now that I have a Kindle, I felt that I needed a way to get these comics on my eReader. I have written a simple python script to download the entirety of my favorite web comics into a folder. It came mostly as a test of the BeautifulSoup HTML parser library for python.

These web comics are ad supported. Please view them through their website. These scripts are for personal use with the intentions of making a portable copy. Please do not use them to pirate their content.

Note: these programs are hacks that rely on the layout of the webpage in which they are hosted. If the layout changes in the slightest, they may no longer work. They are also not written with usability in mind and are therefore made available with no warranty whatsoever.

Requires Python 2.6

To install, unzip folder. Open the folder in a command prompt and type “python scrape_<Comic Name>.py” (e.g. “python scrape_xkcd.py“). Images will download in that folder.

(Because Angelfire is a dick, Right Click on a link an select “Copy Link Address” and then paste it into a new tab)

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s