2012-06-20 20:41:04 +00:00
|
|
|
# -*- 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
|
|
|
|
|
|
|
|
|
|
|
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/'
|
2012-11-20 17:53:53 +00:00
|
|
|
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'
|