I am trying to get calvin and hobbes to work. The tricky thing is that gocomics in their infinite wisdom, has high res photos for some of the comics (like 35%) but not all. I figured, well why not try to get it to work with both. I noticed that Woofy uses Boo interpreter for the def file parsing. So I attempted something:
comic "Calvin and Hobbes"
start_at "http://www.gocomics.com/calvinandhobbes/2007/01/01"
for page in visit("""<a href="(?<content>[^"]*)" class="next">Next feature</a>"""):
foo = download("""class="strip".*?src="(?<content>http://assets.amuniversal.com/[^"]*?)(\?width=900.0|)" """)
if len(array(foo)) > 1:
foo = array(array(foo)[1])
What I was hoping was that if there was more than one image found, to only return the second one. It seems this isn't the case as Woofy just grabs both images on the page that match the regex.
Just wondering if I was doing something wrong.