2012-06-20 20:41:04 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
2012-11-21 20:57:26 +00:00
|
|
|
# Copyright (C) 2012 Bastian Kleineidam
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2012-11-21 20:57:26 +00:00
|
|
|
from re import compile
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
2012-11-20 17:53:53 +00:00
|
|
|
from ..util import tagre
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2012-12-09 17:12:21 +00:00
|
|
|
class IanJay(_BasicScraper):
|
|
|
|
latestUrl = 'http://ianjay.net/'
|
|
|
|
stripUrl = latestUrl + '?p=%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://ianjay\.net/comics/\d+[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://ianjay\.net/\?p=\d+)', after="Previous"))
|
|
|
|
help = 'Index foramt: nnn'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class IDreamOfAJeanieBottle(_BasicScraper):
|
|
|
|
latestUrl = 'http://jeaniebottle.com/'
|
2012-12-04 06:02:40 +00:00
|
|
|
stripUrl = latestUrl + '?p=%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'(/comics/.+?)"')
|
2012-12-04 06:02:40 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://jeaniebottle\.com/\?p=\d+)', after="prev"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n (unpadded)'
|
|
|
|
|
|
|
|
|
|
|
|
class IrregularWebcomic(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.irregularwebcomic.net/'
|
2012-11-21 20:57:26 +00:00
|
|
|
stripUrl = latestUrl + '%s.html'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img .*src="(.*comics/.*(png|jpg|gif))".*>')
|
|
|
|
prevSearch = compile(r'<a href="(/\d+\.html|/cgi-bin/comic\.pl\?comic=\d+)">Previous ')
|
|
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
|
|
|
|
class InsideOut(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.insideoutcomic.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'html/%s.html'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'Picture12LYR.+?C="(.+?/assets/images/.+?)"')
|
|
|
|
prevSearch = compile(r'Picture7LYR.+?F="(.+?/html/.+?)"')
|
|
|
|
help = 'Index format: n_comic_name'
|
|
|
|
|
|
|
|
|
2012-11-20 17:53:53 +00:00
|
|
|
class ItsWalky(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.itswalky.com/'
|
|
|
|
stripUrl = latestUrl + 'd/%s.html'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(/comic[s|/][^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'[^"]*(/d/\d+\.s?html)')+r"[^>]+/images/(?:nav_02|previous_day)\.gif")
|
|
|
|
help = 'Index format: yyyymmdd'
|