dosage/dosagelib/plugins/j.py

49 lines
1.8 KiB
Python
Raw Normal View History

# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
2012-11-21 20:57:26 +00:00
# Copyright (C) 2012 Bastian Kleineidam
2012-06-20 19:58:13 +00:00
2012-12-04 06:02:40 +00:00
from re import compile
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):
latestUrl = 'http://fancyadventures.com/'
stripUrl = latestUrl + '%s/'
imageSearch = compile(tagre("img", "src", r'(http://fancyadventures\.com/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(http://fancyadventures\.com/[^"]+)', after="prev"))
help = 'Index format: yyyy/mm/dd/page-nnn'
2012-06-20 19:58:13 +00:00
class JerkCity(_BasicScraper):
latestUrl = 'http://www.jerkcity.com/'
2012-11-21 20:57:26 +00:00
stripUrl = latestUrl + '_jerkcity%s.html'
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):
latestUrl = 'http://www.joeandmonkey.com/'
stripUrl = latestUrl + '%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):
latestUrl = 'http://www.johnnywander.com/'
stripUrl = latestUrl + 'comics/%s'
imageSearch = compile(tagre("img", "src", r'(http://www\.johnnywander\.com/files/comics/\d+\.jpg)'))
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):
latestUrl = 'http://www.justanotherescape.com/'
stripUrl = latestUrl + 'index.cgi?date=%s'
imageSearch = compile(tagre("img", "src", r'(http://www\.justanotherescape\.com/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(http://www\.justanotherescape\.com//index\.cgi\?date=\d+)')
+ tagre("img", "alt", "Previous Comic"))
help = 'Index format: yyyymmdd'