Fix Weregeek
This commit is contained in:
parent
b383a92f65
commit
2857189068
1 changed files with 4 additions and 7 deletions
|
@ -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'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue