dosage/dosagelib/plugins/comicpress.py

43 lines
1.9 KiB
Python
Raw Normal View History

2015-05-15 12:15:32 +00:00
# -*- coding: utf-8 -*-
from ..scraper import make_scraper, _ParserScraper
2015-05-20 11:56:49 +00:00
2015-05-15 12:15:32 +00:00
def add(name, url, firstUrl=None, lang=None):
2015-05-20 11:56:49 +00:00
attrs = dict(
name=name,
url=url,
imageSearch='//div[@id="comic"]//img',
2015-05-25 08:06:58 +00:00
prevSearch=['//a[contains(text(), " Prev")]',
"//a[contains(concat(' ', @class, ' '), ' navi-prev ')]",
"//a[contains(concat(' ', @class, ' '), ' navi-prev-in ')]"]
2015-05-20 11:56:49 +00:00
)
if lang:
attrs['lang'] = lang
if firstUrl:
attrs['firstUrl'] = url + firstUrl
globals()[name] = make_scraper(name, _ParserScraper, **attrs)
2015-05-15 12:15:32 +00:00
2015-05-25 09:57:06 +00:00
add('1997', 'http://1977thecomic.com/')
add('Amya', 'http://www.amyachronicles.com/')
add('AxeCop', 'http://axecop.com/comic/season-two/')
2015-05-20 12:04:07 +00:00
add('BloodBound', 'http://bloodboundcomic.com/', 'comic/06112006/')
2015-05-25 09:57:06 +00:00
add('BratHalla', 'http://brat-halla.com/')
2015-05-20 12:00:35 +00:00
add('BroodHollow', 'http://broodhollow.chainsawsuit.com/', 'page/2012/10/06/book-1-curious-little-thing')
2015-05-25 09:57:06 +00:00
add('Catena', 'http://catenamanor.com/')
2015-05-20 11:16:54 +00:00
add('CourtingDisaster', 'http://www.courting-disaster.com/', 'comic/courting-disaster-17/')
2015-05-25 09:57:06 +00:00
add('Hipsters', 'http://www.hipsters-comic.com/', 'comic/hip01/')
add('IDreamOfAJeanieBottle', 'http://jeaniebottle.com/')
add('ItsWalky', 'http://www.itswalky.com/')
2015-05-25 08:06:58 +00:00
add('KatzenfutterGeleespritzer', 'http://www.katzenfuttergeleespritzer.de/', 'comics/gert-grendil/', 'de')
2015-05-25 09:57:06 +00:00
add('Meiosis', 'http://meiosiswebcomic.com/')
add('Melonpool', 'http://www.melonpool.com/')
add('Nedroid', 'http://nedroid.com/')
add('Nicky510', 'http://www.nickyitis.com/')
2015-05-20 11:50:18 +00:00
add('OnTheEdge', 'http://ontheedgecomics.com/', 'comic/ote0001/')
2015-05-20 11:56:49 +00:00
add('PandyLand', 'http://pandyland.net/', '1/')
2015-05-25 09:57:06 +00:00
add('SailorsunOrg', 'http://sailorsun.org/')
add('SlightlyDamned', 'http://www.sdamned.com/')
add('SPQRBlues', 'http://spqrblues.com/IV/')
add('TheDreamlandChronicles', 'http://www.thedreamlandchronicles.com/')
add('YAFGC', 'http://yafgc.net/')