Need help specifying a ending while condition
- by johnthexiii
I have written a Python script to download all of the xkcd comic images. The only problem is I can't tell it to stop when it gets to the last one... Here is what I have so far.
import re, mechanize
from urllib import urlretrieve
from BeautifulSoup import BeautifulSoup as bs
baseUrl = "http://xkcd.com/1/" #Specify the first comic page
br =…