2012-11-26 06:13:32 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
|
|
|
# Copyright (C) 2012 Bastian Kleineidam
|
|
|
|
|
|
|
|
from re import compile, IGNORECASE, DOTALL
|
|
|
|
from ..scraper import make_scraper
|
|
|
|
|
2012-11-28 17:15:12 +00:00
|
|
|
_imageSearch = compile(r'<a name="strip\d*?">.*?<img[^>]+?src="([^"]*?memberimages/.+?)"', IGNORECASE + DOTALL)
|
|
|
|
_prevSearch = compile(r'href="([^"]*?whichbutton=prev[^"]*?)"', IGNORECASE)
|
|
|
|
|
2012-11-26 06:13:32 +00:00
|
|
|
|
|
|
|
def add(name, subpath):
|
|
|
|
baseUrl = 'http://www.webcomicsnation.com/'
|
|
|
|
classname = 'WebcomicsNation_%s' % name
|
|
|
|
globals()[classname] = make_scraper(classname,
|
|
|
|
name = 'WebcomicsNation/' + name,
|
|
|
|
latestUrl = baseUrl + subpath,
|
|
|
|
stripUrl = baseUrl + '?view=archive&chapter=%s',
|
2012-11-28 17:15:12 +00:00
|
|
|
imageSearch = _imageSearch,
|
|
|
|
prevSearch = _prevSearch,
|
2012-11-26 06:13:32 +00:00
|
|
|
help = 'Index format: nnnn (non-contiguous)',
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add('AgnesQuill', 'daveroman/agnes/')
|
|
|
|
add('Elvenbaath', 'tdotodot2k/elvenbaath/')
|
|
|
|
add('IrrationalFears', 'uvernon/irrationalfears/')
|
|
|
|
add('KismetHuntersMoon', 'laylalawlor/huntersmoon/')
|
|
|
|
add('SaikoAndLavender', 'gc/saiko/')
|
|
|
|
add('MyMuse', 'gc/muse/')
|
|
|
|
add('NekkoAndJoruba', 'nekkoandjoruba/nekkoandjoruba/')
|
|
|
|
add('JaxEpoch', 'johngreen/quicken/')
|
|
|
|
add('QuantumRockOfAges', 'DreamchildNYC/quantum/')
|
|
|
|
add('ClownSamurai', 'qsamurai/clownsamurai/')
|