2012-06-20 20:41:04 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
2013-02-05 18:51:46 +00:00
|
|
|
# Copyright (C) 2012-2013 Bastian Kleineidam
|
2012-11-21 20:57:26 +00:00
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
from re import compile, MULTILINE, IGNORECASE, sub
|
|
|
|
from os.path import splitext
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
2013-03-06 19:00:30 +00:00
|
|
|
from ..helpers import indirectStarter, bounceStarter
|
2012-11-20 17:53:53 +00:00
|
|
|
from ..util import tagre
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SailorsunOrg(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://sailorsun.org/'
|
|
|
|
stripUrl = url + '?p=%s'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://sailorsun\.org/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://sailorsun\.org/\?p=\d+)', after="prev"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n (unpadded)'
|
|
|
|
|
|
|
|
|
|
|
|
class SamAndFuzzy(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.samandfuzzy.com/'
|
2012-11-13 18:10:19 +00:00
|
|
|
stripUrl = 'http://samandfuzzy.com/%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'(/comics/.+?)" alt')
|
|
|
|
prevSearch = compile(r'"><a href="(.+?)"><img src="imgint/nav_prev.gif"')
|
|
|
|
help = 'Index format: nnnn'
|
|
|
|
|
|
|
|
|
2013-02-13 16:53:11 +00:00
|
|
|
class SandraAndWoo(_BasicScraper):
|
|
|
|
url = 'http://www.sandraandwoo.com/'
|
|
|
|
stripUrl = url + '%s/'
|
2013-03-19 19:54:16 +00:00
|
|
|
firstStripUrl = stripUrl % '2000/01/01/welcome-to-sandra-and-woo'
|
2013-02-13 16:53:11 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.sandraandwoo\.com/comics/\d+-\d+-\d+-[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.sandraandwoo\.com/\d+/\d+/\d+/[^"]+/)', after="prev"))
|
|
|
|
help = 'Index format: yyyy/mm/dd/number-stripname'
|
|
|
|
|
|
|
|
|
2013-03-19 19:54:16 +00:00
|
|
|
class SandraAndWooGerman(_BasicScraper):
|
|
|
|
url = 'http://www.sandraandwoo.com/woode/'
|
|
|
|
stripUrl = url + '%s/'
|
|
|
|
firstStripUrl = stripUrl % '2008/10/19/ein-ausgefuchster-waschbar'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.sandraandwoo\.com/woode/comics/\d+-\d+-\d+-[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.sandraandwoo\.com/woode/\d+/\d+/\d+/[^"]+/)', after="prev"))
|
|
|
|
help = 'Index format: yyyy/mm/dd/number-stripname'
|
|
|
|
lang = 'de'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class SarahZero(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.sarahzero.com/'
|
|
|
|
stripUrl = url + 'sz_%s.html'
|
2012-12-04 06:02:40 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(z_(?:spreads|decoy)/sz_[^"]+)'))
|
2012-11-21 20:57:26 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(sz_\d+\.html)') + tagre("img", "src", r'z_site/sz_05_nav\.gif'))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: nnnn'
|
|
|
|
|
|
|
|
|
|
|
|
class ScaryGoRound(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.scarygoround.com/'
|
|
|
|
stripUrl = url + '?date=%s'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(strips/\d+\.png)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(\?date=\d+)') + "Previous")
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n (unpadded)'
|
|
|
|
|
|
|
|
|
2013-02-06 21:08:36 +00:00
|
|
|
class ScenesFromAMultiverse(_BasicScraper):
|
|
|
|
url = 'http://amultiverse.com/'
|
|
|
|
stripUrl = url + '%s/'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://amultiverse\.com/files/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://amultiverse\.com/\d+\d+/\d+/\d+/[^"]+)', after="prev"))
|
|
|
|
help = 'Index format: yyyy/mm/dd/stripname'
|
|
|
|
|
|
|
|
|
2012-11-20 17:53:53 +00:00
|
|
|
class SchlockMercenary(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.schlockmercenary.com/'
|
|
|
|
stripUrl = url + '%s'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://static\.schlockmercenary\.com/comics/[^"]+)'))
|
2012-12-04 06:02:40 +00:00
|
|
|
multipleImagesPerStrip = True
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(/\d+-\d+-\d+)', quote="'", after="nav-previous"))
|
2012-11-21 20:57:26 +00:00
|
|
|
help = 'Index format: yyyy-mm-dd'
|
2012-11-20 17:53:53 +00:00
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
class SchoolBites(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://schoolbites.net/'
|
|
|
|
stripUrl = url + 'd/%s.html'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://cdn\.schoolbites\.net/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://schoolbites\.net/d/\d+\.html)', after="prev"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
|
|
|
|
2013-01-29 20:23:32 +00:00
|
|
|
class SequentialArt(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.collectedcurios.com/sequentialart.php'
|
|
|
|
stripUrl = url + '?s=%s'
|
2013-01-29 20:23:32 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'([^"]+)', before="strip"))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(/sequentialart\.php\?s=\d+)')
|
|
|
|
+ tagre("img", "src", "Nav_BackOne\.gif"))
|
|
|
|
help = 'Index format: name'
|
|
|
|
|
|
|
|
|
2013-03-06 19:21:10 +00:00
|
|
|
class SexyLosers(_BasicScraper):
|
|
|
|
adult = True
|
|
|
|
url = 'http://www.sexylosers.com/'
|
|
|
|
stripUrl = url + '%s.html'
|
|
|
|
imageSearch = compile(r'<img src\s*=\s*"\s*(comics/[\w\.]+?)"', IGNORECASE)
|
|
|
|
prevSearch = compile(r'<a href="(/\d{3}\.\w+?)"><font color = FFAAAA><<', IGNORECASE)
|
|
|
|
help = 'Index format: nnn'
|
|
|
|
starter = indirectStarter(url,
|
|
|
|
compile(r'SEXY LOSERS <A HREF="(.+?)">Latest SL Comic \(#\d+\)</A>', IGNORECASE))
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def namer(cls, imageUrl, pageUrl):
|
|
|
|
index = pageUrl.split('/')[-1].split('.')[0]
|
|
|
|
title = imageUrl.split('/')[-1].split('.')[0]
|
|
|
|
return index + '-' + title
|
|
|
|
|
|
|
|
|
2013-03-03 16:46:57 +00:00
|
|
|
class ShadowGirls(_BasicScraper):
|
|
|
|
url = 'http://www.shadowgirlscomic.com/'
|
|
|
|
stripUrl = url + 'comics/%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'([^"]*/comics/[^"]*)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'([^"]*)', after='navi-prev'))
|
|
|
|
help = 'Index format: custom'
|
|
|
|
starter = indirectStarter(url, compile(tagre("a", "href", r'([^"]*/comics/[^"]+)')))
|
|
|
|
|
|
|
|
|
2012-11-20 17:53:53 +00:00
|
|
|
class Sheldon(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.sheldoncomics.com/'
|
|
|
|
stripUrl = url + 'archive/%s.html'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(/strips/[^"]+)'))
|
2012-11-26 17:44:31 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(/archive/\d+\.html)', after="sidenav-prev"))
|
2012-11-21 20:57:26 +00:00
|
|
|
help = 'Index format: yymmdd'
|
2012-11-20 17:53:53 +00:00
|
|
|
|
|
|
|
|
2012-12-08 20:30:51 +00:00
|
|
|
class Shivae(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://shivae.net/'
|
|
|
|
stripUrl = url + 'blog/%s/'
|
2012-12-08 20:30:51 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://shivae\.net/files/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://shivae\.net/blog/[^"]+)', after="Previous"))
|
|
|
|
help = 'Index format: yyyy/mm/dd/stripname'
|
|
|
|
|
|
|
|
|
2012-12-12 16:41:29 +00:00
|
|
|
# XXX disallowed by robots.txt
|
|
|
|
class _Shortpacked(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.shortpacked.com/'
|
|
|
|
stripUrl = url + '%s/'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.shortpacked\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.shortpacked\.com/\d+/comic/[^"]+)', after="prev"))
|
2012-12-02 17:35:06 +00:00
|
|
|
help = 'Index format: yyyy/comic/book-nn/mm-name1/name2'
|
2012-11-20 17:53:53 +00:00
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class SinFest(_BasicScraper):
|
|
|
|
name = 'KeenSpot/SinFest'
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.sinfest.net/'
|
|
|
|
stripUrl = url + 'archive_page.php?comicID=%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src=".+?(/comikaze/comics/.+?)"')
|
|
|
|
prevSearch = compile(r'(/archive_page.php\?comicID=.+?)".+?prev_a')
|
|
|
|
help = 'Index format: n (unpadded)'
|
|
|
|
|
|
|
|
|
2013-02-07 22:02:54 +00:00
|
|
|
class SkinDeep(_BasicScraper):
|
|
|
|
url = 'http://www.skindeepcomic.com/'
|
|
|
|
stripUrl = url + 'archive/%s/'
|
|
|
|
imageSearch = compile(r'<span class="webcomic-object[^>]*><img src="([^"]*)"')
|
|
|
|
prevSearch = compile(tagre("a", "href", r'([^"]+)', after="previous-webcomic-link"))
|
|
|
|
help = 'Index format: custom'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class SlightlyDamned(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.sdamned.com/'
|
|
|
|
stripUrl = url + '%s/'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.sdamned\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.sdamned\.com/[^"]+)', after="prev"))
|
|
|
|
help = 'Index format: yyyy/mm/number'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SluggyFreelance(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.sluggy.com/'
|
|
|
|
stripUrl = url + 'comics/archives/daily/%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(/images/comics/.+?)"')
|
|
|
|
prevSearch = compile(r'<a href="(.+?)"[^>]+?><span class="ui-icon ui-icon-seek-prev">')
|
|
|
|
help = 'Index format: yymmdd'
|
|
|
|
|
|
|
|
|
2013-03-06 19:21:10 +00:00
|
|
|
class SMBC(_BasicScraper):
|
|
|
|
url = 'http://www.smbc-comics.com/'
|
|
|
|
stripUrl = url + 'index.php?db=comics&id=%s'
|
|
|
|
imageSearch = compile(r'<img src=\'(.+?\d{8}.\w{1,4})\'>')
|
|
|
|
prevSearch = compile(r'131,13,216,84"\n\s+href="(.+?)#comic"\n>', MULTILINE)
|
|
|
|
help = 'Index format: nnnn'
|
|
|
|
|
|
|
|
|
2013-03-06 19:00:30 +00:00
|
|
|
class SnowFlame(_BasicScraper):
|
|
|
|
url = 'http://www.snowflamecomic.com/'
|
|
|
|
stripUrl = url + '?comic=snowflame-%s-%s'
|
|
|
|
firstStripUrl = stripUrl % ('01', '01')
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.snowflamecomic\.com/wp-content/uploads/\d+/\d+/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("span", "class", "mininav-prev") +
|
|
|
|
tagre("a", "href", r'(http://www\.snowflamecomic\.com/\?comic=snowflame[^"]+)'))
|
|
|
|
starter = bounceStarter(url,
|
|
|
|
compile(tagre("span", "class", "mininav-next") +
|
|
|
|
tagre("a", "href", r'(http://www\.snowflamecomic\.com/\?comic=snowflame[^"]+)')))
|
|
|
|
help = 'Index format: chapter-page'
|
|
|
|
|
|
|
|
def getStripIndexUrl(self, index):
|
|
|
|
return self.stripUrl % index.split('-')
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def namer(cls, imageUrl, pageUrl):
|
|
|
|
prefix, filename = imageUrl.rsplit('/', 1)
|
|
|
|
ro = compile(r'snowflame-([^-]+)-([^-]+)')
|
|
|
|
mo = ro.search(pageUrl)
|
|
|
|
chapter = mo.group(1)
|
|
|
|
page = mo.group(2)
|
|
|
|
return "%s-%s-%s" % (chapter, page, filename)
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class SodiumEyes(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://sodiumeyes.com/'
|
|
|
|
stripUrl = url + '%s/'
|
2012-12-04 06:02:40 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://sodiumeyes\.com/comic/[^ ]+)', quote=""))
|
2012-11-21 20:57:26 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://sodiumeyes\.com/[^"]+)', after="prev"))
|
|
|
|
help = 'Index format: yyyy/mm/dd/stripname'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2012-12-08 20:30:51 +00:00
|
|
|
class Sorcery101(_BasicScraper):
|
2013-02-27 18:40:54 +00:00
|
|
|
url = 'http://www.sorcery101.net/sorcery-101/'
|
|
|
|
stripUrl = url + '%s/'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.sorcery101\.net/wp-content/uploads/\d+/\d+/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.sorcery101\.net/sorcery-101/[^"]+)', after="previous-"))
|
2012-12-08 20:30:51 +00:00
|
|
|
help = 'Index format: stripname'
|
|
|
|
|
|
|
|
|
2013-02-06 21:08:36 +00:00
|
|
|
class SpaceTrawler(_BasicScraper):
|
|
|
|
url = 'http://spacetrawler.com/'
|
|
|
|
stripUrl = url + '%s/'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://spacetrawler\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://spacetrawler\.com/\d+/\d+/\d+/[^"]+)', after="navi-prev"))
|
|
|
|
help = 'Index format: yyyy/mm/dd/stripname'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class SpareParts(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
baseUrl = 'http://www.sparepartscomics.com/'
|
2013-02-04 20:00:26 +00:00
|
|
|
url = baseUrl + 'comics/?date=20080328'
|
2012-12-04 06:02:40 +00:00
|
|
|
stripUrl = baseUrl + 'comics/index.php?date=%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.sparepartscomics\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(index\.php\?date=\d+)', quote="'") + "Previous Comic")
|
2012-11-20 17:53:53 +00:00
|
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2013-01-29 20:52:26 +00:00
|
|
|
class Spinnerette(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.spinnyverse.com/'
|
|
|
|
stripUrl = url + '%s/'
|
2013-01-29 20:52:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.spinnyverse\.com/comics/[^"]+)'))
|
2013-02-07 21:29:51 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.spinnyverse\.com/[^"]+)', before="Previous Comic"))
|
2013-01-29 20:52:26 +00:00
|
|
|
help = 'Index format: number'
|
|
|
|
|
|
|
|
|
2012-12-08 20:30:51 +00:00
|
|
|
class SPQRBlues(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://spqrblues.com/IV/'
|
|
|
|
stripUrl = url + '?p=%s'
|
2012-12-08 20:30:51 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://spqrblues\.com/IV/comics/\d+\.png)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://spqrblues\.com/IV/\?p=\d+)', after="prev"))
|
|
|
|
help = 'Index format: number'
|
|
|
|
|
|
|
|
|
2012-12-13 20:05:27 +00:00
|
|
|
# XXX disallowed by robots.txt
|
|
|
|
class _StationV3(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.stationv3.com/'
|
|
|
|
stripUrl = url + 'd/%s.html'
|
2012-12-08 20:30:51 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.stationv3\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.stationv3\.com/d/\d+\.html)') +
|
|
|
|
tagre("img", "src", r'http://www\.stationv3\.com/images/previous\.gif'))
|
|
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
|
|
|
|
2013-03-03 21:03:27 +00:00
|
|
|
class StickyDillyBuns(_BasicScraper):
|
|
|
|
url = 'http://www.stickydillybuns.com/'
|
|
|
|
stripUrl = url + 'strips-sdb/%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'([^"]*/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'([^"]*/strips-sdb/[^"]+)', before="cn[id]prev"))
|
|
|
|
help = 'Index format: name'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class Stubble(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://stubblecomics.com/'
|
|
|
|
stripUrl = url + '?p=%s'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://stubblecomics\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://stubblecomics\.com/\?p=\d+)', after="navi-prev"))
|
|
|
|
help = 'Index format: number'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class StrawberryDeathCake(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://strawberrydeathcake.com/'
|
|
|
|
stripUrl = url + 'archive/%s/'
|
2012-12-04 06:02:40 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://strawberrydeathcake\.com/wp-content/webcomic/[^"]+)'))
|
2012-11-21 20:57:26 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://strawberrydeathcake\.com/archive/[^"]+)', after="previous"))
|
|
|
|
help = 'Index format: stripname'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SuburbanTribe(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.pixelwhip.com/'
|
|
|
|
stripUrl = url + '?p=%s'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.pixelwhip\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.pixelwhip\.com/\?p=\d+)', after="prev"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: nnnn'
|
|
|
|
|
|
|
|
|
|
|
|
class SomethingPositive(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.somethingpositive.net/'
|
|
|
|
stripUrl = url + 'sp%s.shtml'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(sp\d+\.png)'))
|
2012-12-12 16:41:29 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(sp\d+\.shtml)') +
|
2012-12-04 06:02:40 +00:00
|
|
|
"(?:" + tagre("img", "src", r'images/previous\.gif') + "|Previous)")
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: mmddyyyy'
|
|
|
|
|
|
|
|
|
|
|
|
class StarCrossdDestiny(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.starcrossd.net/comic.html'
|
2012-11-13 18:10:19 +00:00
|
|
|
stripUrl = 'http://www.starcrossd.net/archives/%s.html'
|
2012-12-04 06:02:40 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.starcrossd\.net/(?:ch1|strips|book2)/[^"]+)'))
|
2012-06-20 19:58:13 +00:00
|
|
|
prevSearch = compile(r'<a href="(http://www\.starcrossd\.net/(?:ch1/)?archives/\d+\.html)"[^>]*"[^"]*"[^>]*>prev', IGNORECASE)
|
|
|
|
help = 'Index format: nnnnnnnn'
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def namer(cls, imageUrl, pageUrl):
|
|
|
|
if imageUrl.find('ch1') == -1:
|
|
|
|
# At first all images were stored in a strips/ directory but that was changed with the introduction of book2
|
|
|
|
imageUrl = sub('(?:strips)|(?:images)','book1',imageUrl)
|
|
|
|
elif not imageUrl.find('strips') == -1:
|
|
|
|
imageUrl = imageUrl.replace('strips/','')
|
|
|
|
directory, filename = imageUrl.split('/')[-2:]
|
|
|
|
filename, extension = splitext(filename)
|
|
|
|
return directory + '-' + filename
|
|
|
|
|
|
|
|
|
|
|
|
class Spamusement(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://spamusement.com/'
|
|
|
|
stripUrl = url + 'index.php/comics/view/%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(http://spamusement.com/gfx/\d+\..+?)"', IGNORECASE)
|
|
|
|
prevSearch = compile(r'<a href="(http://spamusement.com/index.php/comics/view/.+?)">', IGNORECASE)
|
|
|
|
help = 'Index format: n (unpadded)'
|
2013-02-04 20:00:26 +00:00
|
|
|
starter = indirectStarter(url, prevSearch)
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2012-12-13 20:05:27 +00:00
|
|
|
# XXX disallowed by robots.txt
|
|
|
|
class _StrangeCandy(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.strangecandy.net/'
|
|
|
|
stripUrl = url + 'd/%s.html'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(/comics/\d+\.jpg)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(/d/\d+\.html)') + tagre("img", "alt", "Previous comic"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: yyyyddmm'
|
|
|
|
|
|
|
|
|
2013-02-13 16:53:11 +00:00
|
|
|
class SupernormalStep(_BasicScraper):
|
|
|
|
url = 'http://supernormalstep.com/'
|
|
|
|
stripUrl = url + '?p=%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://supernormalstep\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://supernormalstep\.com/\?p=\d+)', after="prev"))
|
|
|
|
help = 'Index format: number'
|