Add EatLiver and JimBenton

This commit is contained in:
Bastian Kleineidam 2013-07-16 18:01:44 +02:00
parent 934546954b
commit eb4ee1a251
3 changed files with 26 additions and 2 deletions

View file

@ -1,7 +1,7 @@
Dosage 2.5 (released xx.xx.2013)
Features:
- comics: Added ICanBarelyDraw, MarriedToTheSea, NatalieDee.
- comics: Added EatLiver, ICanBarelyDraw, JimBenton, MarriedToTheSea, NatalieDee.
Closes: GH bug #37
Fixes:

View file

@ -34,6 +34,19 @@ class EarthsongSaga(_BasicScraper):
int(imgmatch.group(3)), suffix)
class EatLiver(_BasicScraper):
description = u'Crazy funny pictures of insane internet'
url = 'http://www.eatliver.com/'
rurl = escape(url)
starter = indirectStarter(url, compile(tagre("a", "href", r'(i\.php\?n=\d+)') +
tagre("img", "src", r'img/small/[^"]+') + r"</a>\s*<br"))
stripUrl = url + "i.php?n=%s"
firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("link", "href", r'(%simg/\d+/[^"]+)' % rurl, before="image_src"))
prevSearch = compile(tagre("a", "href", r'(i\.php\?n=\d+)') + "&#060;&#060; Previous")
class EdibleDirt(_BasicScraper):
description = u'Edible Dirt, by Matt Rosemier'
url = 'http://eddirt.frozenreality.co.uk/'

View file

@ -5,10 +5,11 @@
from re import compile, escape
from ..scraper import _BasicScraper
from ..util import tagre
from ..helpers import indirectStarter
class JackCannon(_BasicScraper):
description = u'The Fancy Adventures of Jack Cannon \u2013 A Webcomic -'
description = u'The Fancy Adventures of Jack Cannon - A Webcomic'
url = 'http://fancyadventures.com/'
rurl = escape(url)
stripUrl = url + '%s/'
@ -27,6 +28,16 @@ class JerkCity(_BasicScraper):
help = 'Index format: n'
class JimBenton(_BasicScraper):
description = u'Selected comics by Jim Benton'
url = 'http://www.jimbenton.com/page14/page14.html'
stripUrl = 'http://www.jimbenton.com/page14/files/JimBentonComic-%s.html'
starter = indirectStarter(url, compile(tagre("a", "href", r'(files/JimBentonComic-[^>]+\.html)', quote="")))
imageSearch = compile(tagre("img", "src", r'(JimBentonComic-[^"]+)', before="photo-frame"))
prevSearch = compile(tagre("a", "href", r'(JimBentonComic-[^>]+\.html)', quote="") + "Next")
help = 'Index format: stripname'
class JoeAndMonkey(_BasicScraper):
url = 'http://www.joeandmonkey.com/'
stripUrl = url + '%s'