diff --git a/dosagelib/plugins/comiccontrol.py b/dosagelib/plugins/comiccontrol.py new file mode 100644 index 000000000..e5185744a --- /dev/null +++ b/dosagelib/plugins/comiccontrol.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +from dosagelib.helpers import indirectStarter +from ..scraper import make_scraper, _ParserScraper + + +def add(name, url, firstUrl=None, starter=None, textSearch=None, lang=None): + attrs = dict( + name=name, + url=url, + imageSearch=['//div[@id="cc-comicbody"]//img'], + prevSearch=['//a[@rel="prev"]'] + ) + if lang: + attrs['lang'] = lang + if firstUrl: + attrs['firstUrl'] = url + firstUrl + if starter: + attrs['starter'] = starter + if textSearch: + attrs['textSearch'] = textSearch + globals()[name] = make_scraper(name, _ParserScraper, **attrs) + + +add('GoGetARoomie', 'http://www.gogetaroomie.com') +add('KiwiBlitz', 'http://www.kiwiblitz.com') +add('LetsSpeakEnglish', 'http://www.marycagle.com') +add('Metacarpolis', 'http://www.metacarpolis.com') +add('Spinnerette', 'http://www.spinnyverse.com') +add('StreetFighter', 'http://www.streetfightercomics.com') diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index 32c5b701d..cc7213ebf 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -131,13 +131,6 @@ class GoblinsComic(_BasicScraper): help = 'Index format: ddmmyyyy' -class GoGetARoomie(_ParserScraper): - url = 'http://www.gogetaroomie.com/index.php' - imageSearch = '//div[@id="cc-comicbody"]//img' - prevSearch = '//a[@rel="prev"]' - help = 'Index format: nnn' - - class GoneWithTheBlastwave(_BasicScraper): url = 'http://www.blastwave-comic.com/index.php?p=comic&nro=1' starter = indirectStarter(url, diff --git a/dosagelib/plugins/k.py b/dosagelib/plugins/k.py index 5a78fb705..cb598dbd1 100644 --- a/dosagelib/plugins/k.py +++ b/dosagelib/plugins/k.py @@ -47,11 +47,6 @@ class KillerKomics(_BasicScraper): prevSearch = compile(r'