Switch Drowtales to parser scraper (also fixes it)
This commit is contained in:
parent
5652b9cb23
commit
b090d86c9b
1 changed files with 4 additions and 9 deletions
|
@ -356,17 +356,12 @@ class DrMcNinja(_ParserScraper):
|
||||||
help = 'Index format: {episode}p{page}'
|
help = 'Index format: {episode}p{page}'
|
||||||
|
|
||||||
|
|
||||||
class Drowtales(_BasicScraper):
|
class Drowtales(_ParserScraper):
|
||||||
baseUrl = 'http://www.drowtales.com/'
|
url = 'http://www.drowtales.com/mainarchive.php'
|
||||||
rurl = escape(baseUrl)
|
|
||||||
url = baseUrl + 'mainarchive.php'
|
|
||||||
stripUrl = url + '?sid=%s'
|
stripUrl = url + '?sid=%s'
|
||||||
firstStripUrl = stripUrl % '4192'
|
firstStripUrl = stripUrl % '4192'
|
||||||
imageSearch = (
|
imageSearch = '//div[@id="content_middle"]//img'
|
||||||
compile(tagre("img", "src", r'((%s)?mainarchive/[^"]+)' % rurl)),
|
prevSearch = '//a[@id="link_prev_top"]'
|
||||||
compile(r'background-image:url\((mainarchive/[^\)]+center\.jpg)'),
|
|
||||||
)
|
|
||||||
prevSearch = compile(tagre("a", "href", r'(\?sid=\d+)', before="link_prev_top"))
|
|
||||||
help = 'Index format: number'
|
help = 'Index format: number'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue