Add WhiteNoiseLee

This commit is contained in:
Techwolf 2019-06-21 00:54:45 -07:00 committed by Tobias Gruetzmacher
parent 12b048d449
commit 4c7a654dcc
2 changed files with 13 additions and 1 deletions

View file

@ -33,6 +33,8 @@ class _WPNaviIn(_WordPressScraper):
class _ComicControlScraper(_ParserScraper):
imageSearch = '//img[@id="cc-comic"]'
prevSearch = '//a[@rel="prev"]'
nextSearch = '//a[@rel="next"]'
latestSearch = '//a[@rel="last"]'
class _TumblrScraper(_ParserScraper):

View file

@ -9,7 +9,7 @@ from re import compile, escape, IGNORECASE
from ..scraper import _BasicScraper, _ParserScraper
from ..util import tagre
from ..helpers import indirectStarter, xpath_class
from ..helpers import bounceStarter, indirectStarter, xpath_class
from .common import _ComicControlScraper, _WordPressScraper
@ -75,6 +75,16 @@ class WhiteNoise(_WordPressScraper):
prevSearch = '//a[%s]' % xpath_class('previous-webcomic-link')
class WhiteNoiseLee(_ComicControlScraper):
url = 'http://www.white-noise-comic.com/'
stripUrl = url + 'comic/%s'
firstStripUrl = stripUrl % '1-0'
starter = bounceStarter
def namer(self, imageUrl, pageUrl):
return pageUrl.rsplit('/', 1)[-1] + '.' + imageUrl.rsplit('.', 1)[-1]
class Whomp(_ComicControlScraper):
url = 'http://www.whompcomic.com/'
firstStripUrl = url + 'comic/06152010'