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
|
|
|
|
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
|
|
|
from ..helpers import indirectStarter
|
2012-11-20 17:53:53 +00:00
|
|
|
from ..util import tagre
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Galaxion(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://galaxioncomics.com/'
|
|
|
|
stripUrl = url + '%s/'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://galaxioncomics\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://galaxioncomics\.com/[^"]+)', after="prev"))
|
|
|
|
help = 'Index format: n-comic/book-n/chapter-n/title-nnn'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Garanos(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://garanos.alexheberling.com/pages/page-1/'
|
|
|
|
starter = indirectStarter(url,
|
2012-11-21 20:57:26 +00:00
|
|
|
compile(tagre("a", "href", r'(http://garanos\.alexheberling\.com/pages/[^"]+)', after="navi-last")))
|
|
|
|
stripUrl = 'http://garanos.alexheberling.com/pages/page-%s'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://garanos\.alexheberling\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://garanos\.alexheberling\.com/pages/[^"]+)', after="prev"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n (unpadded)'
|
|
|
|
|
|
|
|
|
2013-03-06 19:21:10 +00:00
|
|
|
class GastroPhobia(_BasicScraper):
|
|
|
|
url = 'http://www.gastrophobia.com/'
|
|
|
|
stripUrl = url + 'index.php?date=%s'
|
|
|
|
imageSearch = compile(r'<img src="(http://gastrophobia.com/comix/[^"]+)"[^>]*>(?!<br>)')
|
|
|
|
prevSearch = compile(r'<a href="(.+?)"><img src="pix/prev.gif" ')
|
|
|
|
help = 'Index format: yyyy-mm-dd'
|
|
|
|
|
|
|
|
|
|
|
|
class Geeks(_BasicScraper):
|
|
|
|
url = 'http://sevenfloorsdown.com/geeks/'
|
|
|
|
stripUrl = url + 'archives/%s'
|
|
|
|
imageSearch = compile(r'<img src=\'(http://sevenfloorsdown.com/geeks/comics/.+?)\'')
|
|
|
|
prevSearch = compile(r'<a href="(.+?)">« Previous')
|
|
|
|
help = 'Index format: nnn'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2013-03-11 21:51:45 +00:00
|
|
|
class GeeksNextDoor(_BasicScraper):
|
|
|
|
url = 'http://www.geeksnextcomic.com/'
|
|
|
|
stripUrl = url + '%s.html'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(images/GND\d+[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(\d+-\d+-\d+\.html)') +
|
|
|
|
tagre("img", "src", r'images/nav_prev\.png'))
|
|
|
|
help = 'Index format: yyyy-mm-dd'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class GirlsWithSlingshots(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.girlswithslingshots.com/'
|
|
|
|
stripUrl = url + 'comic/gws-%s/'
|
2013-02-18 19:55:54 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://(?:www|cdn)\.girlswithslingshots\.com/comics/[^"]+)'))
|
2012-11-21 20:57:26 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.girlswithslingshots\.com/comic/[^"]+)', after="prev"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
|
2013-03-06 19:21:10 +00:00
|
|
|
class GlassHalfEmpty(_BasicScraper):
|
|
|
|
url = 'http://www.defectivity.com/ghe/index.php'
|
|
|
|
stripUrl = url + '?strip_id=%s'
|
|
|
|
imageSearch = compile(r'src="(comics/.+?)"')
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(\?strip_id=\d+)') + tagre("img", "src", r'\.\./images/arrowbuttons/onback\.jpg'))
|
|
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
|
2012-11-20 17:53:53 +00:00
|
|
|
class GleefulNihilism(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://gleefulnihilism.com/'
|
|
|
|
stripUrl = url + 'comics/%s/'
|
2012-11-20 17:53:53 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://gleefulnihilism\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://gleefulnihilism\.com/comics/[^"]+)') + 'Previous')
|
|
|
|
help = 'Index format: yyyy/mm/dd/stripname'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Goats(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.goats.com/'
|
|
|
|
stripUrl = url + 'archive/%s.html'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img.+?src="(/comix/.+?)"')
|
|
|
|
prevSearch = compile(r'<a href="(/archive/\d{6}.html)" class="button" title="go back">')
|
|
|
|
help = 'Index format: yymmdd'
|
|
|
|
|
|
|
|
|
|
|
|
class GoneWithTheBlastwave(_BasicScraper):
|
2013-02-05 18:51:46 +00:00
|
|
|
url = 'http://www.blastwave-comic.com/index.php?p=comic&nro=1'
|
|
|
|
starter = indirectStarter(url,
|
2012-06-20 19:58:13 +00:00
|
|
|
compile(r'href="(index.php\?p=comic&nro=\d+)"><img src="images/page/default/latest'))
|
2013-02-05 18:51:46 +00:00
|
|
|
stripUrl = url[:-1] + '%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img.+src=".+(/comics/.+?)"')
|
|
|
|
prevSearch = compile(r'href="(index.php\?p=comic&nro=\d+)"><img src="images/page/default/previous')
|
|
|
|
help = 'Index format: n'
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def namer(cls, imageUrl, pageUrl):
|
|
|
|
return '%02d' % int(compile(r'nro=(\d+)').search(pageUrl).group(1))
|
|
|
|
|
|
|
|
|
2013-03-06 19:21:10 +00:00
|
|
|
class GreystoneInn(_BasicScraper):
|
|
|
|
url = 'http://www.greystoneinn.net/'
|
|
|
|
stripUrl = url + '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'
|
|
|
|
|
|
|
|
|
2013-01-29 20:42:10 +00:00
|
|
|
class GrrlPower(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.grrlpowercomic.com/'
|
|
|
|
stripUrl = url + 'archives/%s'
|
2013-01-29 20:42:10 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.grrlpowercomic\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.grrlpowercomic\.com/archives/\d+)', after="navi-prev"))
|
|
|
|
help = 'Index format: number'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class GunnerkrigCourt(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.gunnerkrigg.com/'
|
|
|
|
stripUrl = url + '?p=%s'
|
2013-01-29 18:00:29 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(\?p=\d+)') + tagre("img", "src", "http://www\.gunnerkrigg\.com/images/prev_a\.jpg"))
|
|
|
|
help = 'Index format: number'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Gunshow(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://gunshowcomic.com/'
|
|
|
|
stripUrl = url + '%s'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://gunshowcomic\.com/comics/[^"]+)'))
|
2012-12-04 06:02:40 +00:00
|
|
|
multipleImagesPerStrip = True
|
|
|
|
prevSearch = compile(tagre("a", "href", r'([^"]+)') + tagre("img", "src", r'[^"]*menu/small/previous\.gif'))
|
2012-11-21 20:57:26 +00:00
|
|
|
help = 'Index format: n'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2013-03-06 19:21:10 +00:00
|
|
|
class GUComics(_BasicScraper):
|
2013-03-07 22:08:17 +00:00
|
|
|
url = 'http://www.gucomics.com/'
|
|
|
|
stripUrl = url + '%s'
|
2013-03-06 19:21:10 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(/comics/\d{4}/gu_[^"]+)'))
|
2013-03-07 22:08:17 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(/\d+)') +
|
2013-03-06 19:21:10 +00:00
|
|
|
tagre("img", "src", r'/images/nav/prev\.png'))
|
|
|
|
help = 'Index format: yyyymmdd'
|