Foxtrot
comic "Foxtrot" start_at "http://www.gocomics.com/foxtrot/1996/03/11" for page in visit("""<a href="(?<content>[^"]*?)" class="next">Next feature</a>"""): extra_link = match("""<img alt="[^"]*" class="strip" src="(?<content>http://assets.amuniversal.com/[^"]*?)" />""") as (string) if extra_link != null: download("""<img alt="[^"]*" class="strip" src="(?<content>http://assets.amuniversal.com/[^"]*?)" />""") else: download("""<img alt="[^"]*" class="strip" src="(?<content>http://assets.amuniversal.com/[^"]*?)" width="[^"]*" />""") # Note that downloaded files, unfortunately, do not have file extensions. They will need to be added.
page revision: 0, last edited: 26 Mar 2015 15:12