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-06-20 19:58:13 +00:00
|
|
|
|
2013-04-10 16:19:11 +00:00
|
|
|
from re import compile, escape
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
2012-11-21 20:57:26 +00:00
|
|
|
from ..util import tagre
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
2012-12-08 20:30:51 +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 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'
|
|
|
|
|
|
|
|
|
2012-06-20 19:58:13 +00:00
|
|
|
class JerkCity(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.jerkcity.com/'
|
|
|
|
stripUrl = url + '_jerkcity%s.html'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(/jerkcity[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(/_jerkcity[^"]+)') + r'<<Previous')
|
|
|
|
help = 'Index format: n'
|
2012-06-20 19:58:13 +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
|
|
|
|
|
|
|
|
2012-12-09 17:12:21 +00:00
|
|
|
class JohnnyWander(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.johnnywander.com/'
|
|
|
|
stripUrl = url + 'comics/%s'
|
2013-03-07 17:22:24 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.johnnywander\.com/files/comics/[^"]+)'))
|
2012-12-09 17:12:21 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(/comics/\d+)') + r'prev')
|
|
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
|
2012-12-08 20:30:51 +00:00
|
|
|
class JustAnotherEscape(_BasicScraper):
|
2013-02-04 20:00:26 +00:00
|
|
|
url = 'http://www.justanotherescape.com/'
|
2013-04-10 16:19:11 +00:00
|
|
|
rurl = escape(url)
|
2013-02-04 20:00:26 +00:00
|
|
|
stripUrl = url + 'index.cgi?date=%s'
|
2013-04-10 16:19:11 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(%sindex\.cgi\?date=\d+)' % rurl)
|
2012-12-08 20:30:51 +00:00
|
|
|
+ tagre("img", "alt", "Previous Comic"))
|
|
|
|
help = 'Index format: yyyymmdd'
|