Switch SinFest to parser scraper (fixes #168)
This commit is contained in:
parent
684ba1f909
commit
98d5d9eb26
1 changed files with 6 additions and 6 deletions
|
@ -231,13 +231,13 @@ class ShotgunShuffle(_WordPressScraper):
|
||||||
firstStripUrl = url + 'comic/pilot/'
|
firstStripUrl = url + 'comic/pilot/'
|
||||||
|
|
||||||
|
|
||||||
class SinFest(_BasicScraper):
|
class SinFest(_ParserScraper):
|
||||||
url = 'http://www.sinfest.net/'
|
url = 'https://www.sinfest.net/'
|
||||||
stripUrl = url + 'view.php?date=%s'
|
stripUrl = url + 'view.php?date=%s'
|
||||||
imageSearch = compile(tagre("img", "src", r'(btphp/comics/.+)',
|
firstStripUrl = stripUrl % '2000-01-17'
|
||||||
after="alt"))
|
imageSearch = '//img[contains(@src, "btphp/comics/")]'
|
||||||
prevSearch = compile(tagre("a", "href", r'(view\.php\?date=.+)') + '\\s*' +
|
textSearch = imageSearch + '/@alt'
|
||||||
tagre("img", "src", r'\.\./images/prev\.gif'))
|
prevSearch = '//a[./img[contains(@src, "images/prev")]]'
|
||||||
help = 'Index format: yyyy-mm-dd'
|
help = 'Index format: yyyy-mm-dd'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue