commit
45ae1737b9
2 changed files with 22 additions and 0 deletions
|
@ -203,6 +203,21 @@ class Precocious(_ParserScraper):
|
|||
prevSearch = '//a[img[contains(@src, "/back_arrow")]]'
|
||||
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):
|
||||
url = 'http://ps238.nodwick.com/'
|
||||
|
|
|
@ -383,6 +383,13 @@ class SpaceTrawler(_WordPressScraper):
|
|||
prevSearch = '//a[%s]' % xpath_class('navi-prev')
|
||||
endOfLife = True
|
||||
|
||||
class SpaceJunkArlia(_BasicScraper):
|
||||
url = 'http://spacejunkarlia.com'
|
||||
stripUrl = url + '/index.php?strip_id=%s'
|
||||
firstStripUrl = stripUrl % '0'
|
||||
imageSearch = compile(tagre('img', 'src', r'(comics/[^"]+)'))
|
||||
prevSearch = compile(tagre('a', 'href', r'(\?strip_id=\d+)') + '<<')
|
||||
help = 'Index format: number'
|
||||
|
||||
class Spamusement(_BasicScraper):
|
||||
url = 'http://spamusement.com/'
|
||||
|
|
Loading…
Reference in a new issue