Merge pull request #60 from Freestila/master

Added comics - looks good
This commit is contained in:
Tobias Gruetzmacher 2014-02-27 22:24:57 +01:00
commit 8e2ba15410
4 changed files with 38 additions and 0 deletions

View file

@ -155,6 +155,16 @@ class DerTodUndDasMaedchen(_BasicScraper):
lang = 'de' lang = 'de'
class DieFruehreifen(_BasicScraper):
url = 'http://www.die-fruehreifen.de/index.php'
stripUrl = url + '?id=%s&order=DESC'
firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r"(strips/[F,f]rueh[_]?[S,s]trip_\d+.jpg)"))
prevSearch = compile(tagre("a", "href", r"(index\.php\?id=\d+&order=DESC)") + tagre("img","id",r"naechster"))
help = 'Index format: n (unpadded)'
lang = 'de'
class DieselSweeties(_BasicScraper): class DieselSweeties(_BasicScraper):
description = u'diesel sweeties : robot webcomic & geeky music t-shirts' description = u'diesel sweeties : robot webcomic & geeky music t-shirts'
url = 'http://www.dieselsweeties.com/' url = 'http://www.dieselsweeties.com/'
@ -315,3 +325,11 @@ class _DumbingOfAge(_BasicScraper):
prevSearch = compile(tagre("a", "href", r'(%s\d+/[^"]+)' % rurl, after="prev")) prevSearch = compile(tagre("a", "href", r'(%s\d+/[^"]+)' % rurl, after="prev"))
imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+[^"]+)' % rurl)) imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+[^"]+)' % rurl))
help = 'Index format: yyyy/comic/book-num/seriesname/stripname' help = 'Index format: yyyy/comic/book-num/seriesname/stripname'
class DungeonsAndDenizens(_BasicScraper):
url = 'http://dungeond.com/'
stripUrl = url + '\d/\d/\d/%s/'
firstStripUrl = stripUrl % '08232005'
imageSearch = compile(tagre("img", "src", r'(%sfiles//comics/[^"]+)' % url))
prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % url) + "Previous")
help = 'Index format: ddmmyyyy'

View file

@ -19,6 +19,7 @@ def add(name, host):
stripUrl = baseUrl + '?comic_id=%s', stripUrl = baseUrl + '?comic_id=%s',
imageSearch = _imageSearch, imageSearch = _imageSearch,
prevSearch = _prevSearch, prevSearch = _prevSearch,
waitSeconds = 1,
help = 'Index format: n (unpadded)', help = 'Index format: n (unpadded)',
) )
@ -36,3 +37,4 @@ add('Soul', 'soul')
add('FT', 'ft') add('FT', 'ft')
add('Bunnywith', 'bunnywith') add('Bunnywith', 'bunnywith')
add('Braindead', 'braindead') add('Braindead', 'braindead')
add('GrimTalesFromDownBelow', 'grim')

View file

@ -71,6 +71,15 @@ class TheGentlemansArmchair(_BasicScraper):
help = 'Index Format: name' help = 'Index Format: name'
class TheLandscaper(_BasicScraper):
url = 'http://landscaper.visual-assault.net/comic/latest'
rurl = escape(url)
stripUrl = url + 'comic/%s'
firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r'(/comics/comic/comic_page/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/comic/[^"]+)')+'‹ Previous')
help = 'Index format: name'
class TheNoob(_BasicScraper): class TheNoob(_BasicScraper):
url = 'http://www.thenoobcomic.com/index.php' url = 'http://www.thenoobcomic.com/index.php'
stripUrl = url + '?pos=%s' stripUrl = url + '?pos=%s'

View file

@ -8,6 +8,15 @@ from ..scraper import _BasicScraper
from ..helpers import bounceStarter, indirectStarter from ..helpers import bounceStarter, indirectStarter
from ..util import getQueryParams, tagre from ..util import getQueryParams, tagre
class Underling(_BasicScraper):
url = 'http://underlingcomic.com/'
stripUrl = url
rurl = escape(url)
firstStripUrl = stripUrl + 'page-one/'
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]*)' % rurl))
prevSearch = compile(tagre("a", "href", r'([^"]+)', after = r'class="[^"]*navi-prev'))
help = 'Index format: nnn'
class Undertow(_BasicScraper): class Undertow(_BasicScraper):
url = 'http://undertow.dreamshards.org/' url = 'http://undertow.dreamshards.org/'