Move PensAndTales comics and fix them.
This commit is contained in:
parent
4006ced43d
commit
b93a8fde65
3 changed files with 16 additions and 30 deletions
|
@ -209,6 +209,16 @@ class EvilInc(_BasicScraper):
|
||||||
help = 'Index format: stripname'
|
help = 'Index format: stripname'
|
||||||
|
|
||||||
|
|
||||||
|
class Evilish(_ParserScraper):
|
||||||
|
url = 'http://evilish.pensandtales.com/'
|
||||||
|
stripUrl = url + '?date=%s'
|
||||||
|
firstStripUrl = stripUrl % '20020630'
|
||||||
|
imageSearch = '//img[@alt="Today\'s Comics"]'
|
||||||
|
prevSearch = '//a[img[@alt="Previous Comic"]]'
|
||||||
|
endOfLife = True
|
||||||
|
help = 'Index format: yyyymmdd'
|
||||||
|
|
||||||
|
|
||||||
class Exiern(_BasicScraper):
|
class Exiern(_BasicScraper):
|
||||||
url = 'http://www.exiern.com/'
|
url = 'http://www.exiern.com/'
|
||||||
rurl = escape(url)
|
rurl = escape(url)
|
||||||
|
|
|
@ -9,7 +9,7 @@ from re import compile, escape, IGNORECASE
|
||||||
from ..util import tagre
|
from ..util import tagre
|
||||||
from ..scraper import _BasicScraper, _ParserScraper
|
from ..scraper import _BasicScraper, _ParserScraper
|
||||||
from ..helpers import indirectStarter
|
from ..helpers import indirectStarter
|
||||||
from .common import _WPNaviIn
|
from .common import _WPNaviIn, _WordPressScraper
|
||||||
|
|
||||||
|
|
||||||
class FalconTwin(_BasicScraper):
|
class FalconTwin(_BasicScraper):
|
||||||
|
@ -56,6 +56,11 @@ class FilibusterCartoons(_BasicScraper):
|
||||||
help = 'Index format: yyyy/mm/dd/name'
|
help = 'Index format: yyyy/mm/dd/name'
|
||||||
|
|
||||||
|
|
||||||
|
class FireflyCross(_WordPressScraper):
|
||||||
|
url = 'http://www.fireflycross.pensandtales.com/'
|
||||||
|
firstStripUrl = url + '?comic=05062002'
|
||||||
|
|
||||||
|
|
||||||
class FirstWorldProblems(_BasicScraper):
|
class FirstWorldProblems(_BasicScraper):
|
||||||
url = 'http://bradcolbow.com/archive/C5/'
|
url = 'http://bradcolbow.com/archive/C5/'
|
||||||
stripUrl = url + '%s/'
|
stripUrl = url + '%s/'
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
# -*- coding: iso-8859-1 -*-
|
|
||||||
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
|
||||||
from re import compile
|
|
||||||
from ..scraper import make_scraper
|
|
||||||
from ..util import tagre
|
|
||||||
|
|
||||||
_imageSearch = compile(tagre("img", "src", r'([^"]*wp-content/uploads/[^"]+)'))
|
|
||||||
|
|
||||||
def add(name, baseUrl, param="date"):
|
|
||||||
classname = 'PensAndTales_%s' % name
|
|
||||||
_prevSearch = compile(tagre("span", "class", "mininav-prev") +
|
|
||||||
tagre("a", "href", r'([^"]*\?%s=[-\d]+)' % param))
|
|
||||||
globals()[classname] = make_scraper(classname,
|
|
||||||
name='PensAndTales/' + name,
|
|
||||||
url = baseUrl,
|
|
||||||
stripUrl = baseUrl + '?' + param + '=%s',
|
|
||||||
imageSearch = _imageSearch,
|
|
||||||
prevSearch = _prevSearch,
|
|
||||||
help='Index format: yyyymmdd'
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# Most of the comics linked at pensandtales are broken and
|
|
||||||
# the rest does not have a common layout. It seems they allow
|
|
||||||
# almost arbitrary HTML layout.
|
|
||||||
|
|
||||||
add('FireflyCross', 'http://www.fireflycross.pensandtales.com/', param="comic")
|
|
||||||
add('Evilish', 'http://evilish.pensandtales.com/')
|
|
Loading…
Reference in a new issue