2020-04-18 11:45:44 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
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
|
2022-05-28 17:33:16 +00:00
|
|
|
# Copyright (C) 2015-2022 Tobias Gruetzmacher
|
2013-04-10 16:19:11 +00:00
|
|
|
from re import compile, escape
|
2016-04-12 21:11:39 +00:00
|
|
|
|
2022-06-06 10:08:32 +00:00
|
|
|
from ..scraper import BasicScraper
|
2012-11-21 20:57:26 +00:00
|
|
|
from ..util import tagre
|
2020-07-31 20:56:30 +00:00
|
|
|
from ..helpers import indirectStarter
|
2022-06-06 10:08:32 +00:00
|
|
|
from .common import ComicControlScraper
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2022-06-06 10:08:32 +00:00
|
|
|
class JackCannon(BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://fancyadventures.com/'
|
2013-04-10 16:19:11 +00:00
|
|
|
rurl = escape(url)
|
2013-02-04 20:00:26 +00:00
|
|
|
stripUrl = url + '%s/'
|
2013-04-10 21:57:09 +00:00
|
|
|
firstStripUrl = stripUrl % '2008/07/07/2008-07-08'
|
2013-04-10 16:19:11 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after="prev"))
|
2012-12-08 20:30:51 +00:00
|
|
|
help = 'Index format: yyyy/mm/dd/page-nnn'
|
|
|
|
|
|
|
|
|
2022-06-06 10:08:32 +00:00
|
|
|
class JimBenton(BasicScraper):
|
2013-07-16 16:01:44 +00:00
|
|
|
url = 'http://www.jimbenton.com/page14/page14.html'
|
|
|
|
stripUrl = 'http://www.jimbenton.com/page14/files/JimBentonComic-%s.html'
|
2016-04-13 18:01:51 +00:00
|
|
|
starter = indirectStarter
|
2016-04-12 21:11:39 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(JimBentonComic-[^"]+)',
|
|
|
|
before="photo-frame"))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(JimBentonComic-[^>]+\.html)',
|
|
|
|
quote="") + "Next")
|
|
|
|
latestSearch = compile(tagre("a", "href", r'(files/JimBentonComic-[^>]+\.html)', quote=""))
|
2013-07-16 16:01:44 +00:00
|
|
|
help = 'Index format: stripname'
|
|
|
|
|
|
|
|
|
2022-06-06 10:08:32 +00:00
|
|
|
class JoeAndMonkey(BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.joeandmonkey.com/'
|
|
|
|
stripUrl = url + '%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'"(/comic/[^"]+)"')
|
|
|
|
prevSearch = compile(r"<a href='(/\d+)'>Previous")
|
|
|
|
help = 'Index format: nnn'
|
2012-12-08 20:30:51 +00:00
|
|
|
|
|
|
|
|
2022-06-06 10:08:32 +00:00
|
|
|
class JohnnyWander(ComicControlScraper):
|
2020-07-31 20:56:30 +00:00
|
|
|
imageSearch = ('//ul[d:class("cc-showbig")]/li/@data-src',
|
2022-05-28 17:33:16 +00:00
|
|
|
'//img[@id="cc-comic"]')
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.johnnywander.com/'
|