Fix Weregeek

This commit is contained in:
Techwolf 2019-07-13 02:02:04 -07:00 committed by Tobias Gruetzmacher
parent b383a92f65
commit 2857189068

View file

@ -57,15 +57,12 @@ class WeCanSleepTomorrow(_BasicScraper):
help = 'Index format: yyyy/mm/dd/stripname' help = 'Index format: yyyy/mm/dd/stripname'
class Weregeek(_BasicScraper): class Weregeek(_ParserScraper):
url = 'http://www.weregeek.com/' url = 'http://www.weregeek.com/'
rurl = escape(url)
stripUrl = url + '%s/' stripUrl = url + '%s/'
firstStripUrl = stripUrl % '2006/11/27/' firstStripUrl = stripUrl % '2006/11/27'
imageSearch = compile(tagre("img", "src", imageSearch = '//div[@id="comic"]/img'
r'(%scomics/\d+-\d+-\d+[^"]+)' % rurl)) prevSearch = '//a[./img[@alt="Previous"]]'
prevSearch = compile(tagre("a", "href", r'((%s)?/?\d+/\d+/\d+/)' % rurl) +
r'\s*' + tagre('img', 'src', '[^"]*previous_day.gif'))
help = 'Index format: yyyy/mm/dd' help = 'Index format: yyyy/mm/dd'