2016-03-20 19:10:04 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-10-28 22:21:41 +00:00
|
|
|
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
2014-01-05 15:50:57 +00:00
|
|
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
2020-01-09 16:38:13 +00:00
|
|
|
# Copyright (C) 2015-2020 Tobias Gruetzmacher
|
2020-01-13 06:34:05 +00:00
|
|
|
# Copyright (C) 2019-2020 Daniel Ring
|
2013-04-10 16:19:11 +00:00
|
|
|
from re import compile, escape
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2015-06-01 03:11:16 +00:00
|
|
|
from ..scraper import _BasicScraper, _ParserScraper
|
2019-06-22 07:27:13 +00:00
|
|
|
from ..helpers import bounceStarter, indirectStarter
|
2012-11-20 17:53:53 +00:00
|
|
|
from ..util import tagre
|
2019-07-21 23:47:14 +00:00
|
|
|
from .common import _ComicControlScraper, _WordPressScraper, _WPNavi
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2019-07-29 00:59:37 +00:00
|
|
|
class Galaxion(_WPNavi):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://galaxioncomics.com/'
|
|
|
|
stripUrl = url + '%s/'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '1-comic/the-story-so-far/the-story-so-far'
|
2019-07-29 00:59:37 +00:00
|
|
|
multipleImagesPerStrip = True
|
2012-11-21 20:57:26 +00:00
|
|
|
help = 'Index format: n-comic/book-n/chapter-n/title-nnn'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2020-01-09 16:38:13 +00:00
|
|
|
class Garanos(_WordPressScraper):
|
|
|
|
stripUrl = ('https://web.archive.org/web/20180314181433/'
|
|
|
|
'http://garanos.alexheberling.com/pages/%s/')
|
|
|
|
url = stripUrl % 'page-487'
|
|
|
|
firstStripUrl = stripUrl % 'vol01'
|
|
|
|
endOfLife = True
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2016-03-20 19:10:04 +00:00
|
|
|
class GastroPhobia(_ParserScraper):
|
2013-03-06 19:21:10 +00:00
|
|
|
url = 'http://www.gastrophobia.com/'
|
|
|
|
stripUrl = url + 'index.php?date=%s'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '2008-07-30'
|
2016-03-20 19:10:04 +00:00
|
|
|
imageSearch = '//div[@id="comic"]//img'
|
|
|
|
prevSearch = '//div[@id="prev"]/a'
|
2013-03-06 19:21:10 +00:00
|
|
|
help = 'Index format: yyyy-mm-dd'
|
|
|
|
|
|
|
|
|
2020-01-09 16:38:13 +00:00
|
|
|
class Geeks(_ParserScraper):
|
|
|
|
url = ('https://web.archive.org/web/20190527194921/'
|
|
|
|
'http://sevenfloorsdown.com/geeks/')
|
2013-03-06 19:21:10 +00:00
|
|
|
stripUrl = url + 'archives/%s'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '10'
|
2020-01-09 16:38:13 +00:00
|
|
|
imageSearch = '//div[@id="comic"]/img'
|
|
|
|
prevSearch = '//a[contains(text(), "Previous")]'
|
|
|
|
endOfLife = True
|
2013-03-06 19:21:10 +00:00
|
|
|
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'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '2010-10-04'
|
2013-03-11 21:51:45 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(images/GND\d+[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(\d+-\d+-\d+\.html)') +
|
2016-03-20 19:10:04 +00:00
|
|
|
tagre("img", "src", r'images/nav_prev\.png'))
|
2013-03-11 21:51:45 +00:00
|
|
|
help = 'Index format: yyyy-mm-dd'
|
|
|
|
|
|
|
|
|
2019-07-21 23:47:14 +00:00
|
|
|
class Ginpu(_WPNavi):
|
2019-12-31 00:44:19 +00:00
|
|
|
url = 'https://www.ginpu.us/'
|
2019-07-21 23:47:14 +00:00
|
|
|
stripUrl = url + 'comic/%s/'
|
|
|
|
firstStripUrl = stripUrl % 'filler-2'
|
|
|
|
|
|
|
|
def namer(self, imageUrl, pageUrl):
|
|
|
|
filename = imageUrl.rsplit('/', 3)
|
|
|
|
return '%s-%s_%s' % (filename[1], filename[2], filename[3])
|
|
|
|
|
|
|
|
|
2013-04-25 18:58:24 +00:00
|
|
|
class GirlGenius(_BasicScraper):
|
|
|
|
baseUrl = 'http://www.girlgeniusonline.com/'
|
|
|
|
rurl = escape(baseUrl)
|
|
|
|
url = baseUrl + 'comic.php'
|
2013-04-26 17:52:45 +00:00
|
|
|
stripUrl = url + '?date=%s'
|
2013-04-25 18:58:24 +00:00
|
|
|
firstStripUrl = stripUrl % '20021104'
|
2016-03-20 19:10:04 +00:00
|
|
|
imageSearch = compile(
|
|
|
|
tagre("img", "src", r"(%sggmain/strips/[^']*)" % rurl, quote="'"))
|
2014-06-13 20:43:40 +00:00
|
|
|
prevSearch = compile(tagre("a", "id", "topprev", quote="\"",
|
2016-03-20 19:10:04 +00:00
|
|
|
before=r"(%s[^\"']+)" % rurl))
|
2014-06-13 20:43:40 +00:00
|
|
|
multipleImagesPerStrip = True
|
2013-04-25 18:58:24 +00:00
|
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
2016-03-20 19:10:04 +00:00
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class GirlsWithSlingshots(_BasicScraper):
|
2019-06-26 21:22:45 +00:00
|
|
|
url = 'https://girlswithslingshots.com/'
|
2013-04-10 21:57:09 +00:00
|
|
|
rurl = escape(url)
|
2016-03-20 19:10:04 +00:00
|
|
|
stripUrl = url + 'comic/%s'
|
2014-07-02 17:51:53 +00:00
|
|
|
firstStripUrl = stripUrl % 'gws1'
|
2013-04-10 21:57:09 +00:00
|
|
|
imageSearch = (
|
|
|
|
compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)),
|
2016-03-20 19:10:04 +00:00
|
|
|
compile(tagre("img", "src",
|
|
|
|
r'(http://cdn\.girlswithslingshots\.com/comics/[^"]+)')),
|
2013-04-10 21:57:09 +00:00
|
|
|
)
|
2016-03-20 19:10:04 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(%scomic/[^"]+)' % rurl,
|
2019-06-26 21:22:45 +00:00
|
|
|
before='rel="prev"'))
|
2014-07-02 17:51:53 +00:00
|
|
|
help = 'Index format: stripname'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2020-01-09 16:38:13 +00:00
|
|
|
class GleefulNihilism(_WordPressScraper):
|
|
|
|
url = ('https://web.archive.org/web/20170911203122/'
|
|
|
|
'http://gleefulnihilism.com/')
|
2013-11-12 17:33:14 +00:00
|
|
|
stripUrl = url + 'comic/%s/'
|
|
|
|
firstStripUrl = stripUrl % 'amoeba'
|
2020-01-09 16:38:13 +00:00
|
|
|
endOfLife = True
|
2013-11-12 17:33:14 +00:00
|
|
|
help = 'Index format: stripname'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2015-09-28 21:50:15 +00:00
|
|
|
class GoblinsComic(_ParserScraper):
|
2013-07-09 20:21:17 +00:00
|
|
|
url = 'http://www.goblinscomic.org/'
|
2013-04-10 16:19:11 +00:00
|
|
|
rurl = escape(url)
|
2013-04-09 17:37:24 +00:00
|
|
|
stripUrl = url + '%s/'
|
2015-09-28 21:50:15 +00:00
|
|
|
css = True
|
|
|
|
imageSearch = '#comic img'
|
|
|
|
prevSearch = '.nav-previous > a'
|
2013-04-09 17:37:24 +00:00
|
|
|
help = 'Index format: ddmmyyyy'
|
|
|
|
|
|
|
|
|
2016-10-13 22:14:53 +00:00
|
|
|
class GodChild(_WordPressScraper):
|
|
|
|
url = 'http://godchild.keenspot.com/'
|
|
|
|
|
|
|
|
|
2016-04-03 22:12:53 +00:00
|
|
|
class GoGetARoomie(_ComicControlScraper):
|
|
|
|
url = 'http://www.gogetaroomie.com'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class GoneWithTheBlastwave(_BasicScraper):
|
2013-02-05 18:51:46 +00:00
|
|
|
url = 'http://www.blastwave-comic.com/index.php?p=comic&nro=1'
|
2016-04-13 18:01:51 +00:00
|
|
|
starter = indirectStarter
|
2013-02-05 18:51:46 +00:00
|
|
|
stripUrl = url[:-1] + '%s'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '1'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img.+src=".+(/comics/.+?)"')
|
2016-03-20 19:10:04 +00:00
|
|
|
prevSearch = compile(r'href="(index.php\?p=comic&nro=\d+)">' +
|
|
|
|
r'<img src="images/page/default/previous')
|
2016-04-12 21:11:39 +00:00
|
|
|
latestSearch = compile(r'href="(index.php\?p=comic&nro=\d+)">' +
|
|
|
|
r'<img src="images/page/default/latest')
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: n'
|
|
|
|
|
2016-04-21 06:20:49 +00:00
|
|
|
def namer(self, image_url, page_url):
|
|
|
|
return '%02d' % int(compile(r'nro=(\d+)').search(page_url).group(1))
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2019-06-13 06:04:09 +00:00
|
|
|
class GrrlPower(_WordPressScraper):
|
2019-12-31 00:44:19 +00:00
|
|
|
url = 'https://grrlpowercomic.com/'
|
2019-06-13 06:04:09 +00:00
|
|
|
stripUrl = url + 'archives/comic/%s/'
|
|
|
|
firstStripUrl = stripUrl % 'gp0001'
|
2013-01-29 20:42:10 +00:00
|
|
|
|
|
|
|
|
2019-06-22 07:27:13 +00:00
|
|
|
class Guardia(_ParserScraper):
|
|
|
|
url = 'https://ssp-comics.com/comics/Guardia/'
|
|
|
|
stripUrl = url + '?page=%s'
|
|
|
|
firstStripUrl = stripUrl % '1'
|
|
|
|
imageSearch = '//img[contains(@src, "comics/Guardia/")]'
|
|
|
|
prevSearch = '//a[./button[@id="prevButton"]]'
|
|
|
|
nextSearch = '//a[./button[@id="nextButton"]]'
|
|
|
|
starter = bounceStarter
|
|
|
|
|
|
|
|
def namer(self, imageUrl, pageUrl):
|
|
|
|
return pageUrl.rsplit('=', 1)[-1] + '.' + imageUrl.rsplit('.', 1)[-1]
|
|
|
|
|
|
|
|
|
2016-03-31 21:13:54 +00:00
|
|
|
class GUComics(_BasicScraper):
|
|
|
|
url = 'http://www.gucomics.com/'
|
|
|
|
stripUrl = url + '%s'
|
|
|
|
firstStripUrl = stripUrl % '20000710'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(/comics/\d{4}/gu_[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(/\d+)') +
|
|
|
|
tagre("img", "src", r'/images/nav/prev\.png'))
|
|
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
|
|
|
|
2019-06-12 04:26:42 +00:00
|
|
|
class GunnerkriggCourt(_ParserScraper):
|
|
|
|
url = 'http://www.gunnerkrigg.com/'
|
2013-02-04 20:00:26 +00:00
|
|
|
stripUrl = url + '?p=%s'
|
2019-06-12 04:26:42 +00:00
|
|
|
firstStripUrl = stripUrl % '1'
|
|
|
|
imageSearch = '//img[@class="comic_image"]'
|
|
|
|
prevSearch = '//a[./img[contains(@src, "prev")]]'
|
2013-01-29 18:00:29 +00:00
|
|
|
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'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '1'
|
2016-03-20 19:10:04 +00:00
|
|
|
imageSearch = compile(tagre("img", "src",
|
|
|
|
r'(http://gunshowcomic\.com/comics/[^"]+)'))
|
2012-12-04 06:02:40 +00:00
|
|
|
multipleImagesPerStrip = True
|
2016-03-20 19:10:04 +00:00
|
|
|
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'
|