Cyanide and Happiness

<< back to list

comic "Cyanide and Happiness"
start_at "http://explosm.net/comics/15"
 
previousPage = ""
for page in visit("""<li><a href="(?<content>[^"]*?)" class="next-comic">"""):
    if previousPage == page.ToString():
        log("Reached an infinite loop. Exiting...")
        break
    download("""<img id="main-comic" src="(?<content>[^"]*?)"/>""")
    previousPage = page.ToString()
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License