redoing MenageA3 with ParserScraper (previous search regex was broken)

This commit is contained in:
Damjan Košir 2017-10-02 21:52:40 +13:00
parent 6369203bc0
commit 0e0dcf1f8e

View file

@ -116,14 +116,11 @@ class Melonpool(_WordPressScraper):
allow_errors = (500,) allow_errors = (500,)
class MenageA3(_BasicScraper): class MenageA3(_ParserScraper):
adult = True adult = True
url = 'http://www.ma3comic.com/' url = 'http://www.ma3comic.com/'
stripUrl = url + 'strips-ma3/%s' imageSearch = '//*[@id="cc-comic"]'
imageSearch = compile(tagre("img", "src", r'([^"]*/comics/[^"]+)')) prevSearch = '//a[@class="prev"]'
prevSearch = compile(tagre("a", "href", r'([^"]*/comics/[^"]+)',
before="cn[id]prev"))
help = 'Index format: name'
class Metacarpolis(_ComicControlScraper): class Metacarpolis(_ComicControlScraper):