Added Prince of Sartar Comic
This commit is contained in:
parent
81821dc450
commit
afcd19bf5b
1 changed files with 15 additions and 0 deletions
|
@ -203,6 +203,21 @@ class Precocious(_ParserScraper):
|
||||||
prevSearch = '//a[img[contains(@src, "/back_arrow")]]'
|
prevSearch = '//a[img[contains(@src, "/back_arrow")]]'
|
||||||
help = 'Index format: yyyy/mm/dd'
|
help = 'Index format: yyyy/mm/dd'
|
||||||
|
|
||||||
|
class PrinceOfSartar(_WordPressScraper):
|
||||||
|
url = 'http://www.princeofsartar.com/'
|
||||||
|
stripUrl = url + 'comic/%s/'
|
||||||
|
firstStripUrl = stripUrl % 'introduction-chapter-1'
|
||||||
|
imageSearch = '//div[@id="comic"]//img'
|
||||||
|
prevSearch = '//a[@class="navi comic-nav-previous navi-prev"]'
|
||||||
|
nextSearch = '//a[@class="navi comic-nav-next navi-next"]'
|
||||||
|
starter = bounceStarter
|
||||||
|
help = 'Index format: name'
|
||||||
|
|
||||||
|
def namer(self, image_url, page_url):
|
||||||
|
"""Use page URL to contruct a unique name."""
|
||||||
|
title = page_url.rsplit('/', 2)[1]
|
||||||
|
image_ext = image_url.rsplit('.', 1)[1]
|
||||||
|
return '%s.%s' % (title, image_ext)
|
||||||
|
|
||||||
class PS238(_ParserScraper):
|
class PS238(_ParserScraper):
|
||||||
url = 'http://ps238.nodwick.com/'
|
url = 'http://ps238.nodwick.com/'
|
||||||
|
|
Loading…
Reference in a new issue