Merge pull request #53 from hfiguiere/new-comics

New comics
This commit is contained in:
Tobias Gruetzmacher 2016-08-09 00:23:15 +02:00
commit 45ae1737b9
2 changed files with 22 additions and 0 deletions

View file

@ -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/'

View file

@ -383,6 +383,13 @@ class SpaceTrawler(_WordPressScraper):
prevSearch = '//a[%s]' % xpath_class('navi-prev') prevSearch = '//a[%s]' % xpath_class('navi-prev')
endOfLife = True 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+)') + '&lt;<')
help = 'Index format: number'
class Spamusement(_BasicScraper): class Spamusement(_BasicScraper):
url = 'http://spamusement.com/' url = 'http://spamusement.com/'