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-11-21 20:57:26 +00:00
|
|
|
from re import compile, MULTILINE
|
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'
|
|
|
|
|
|
|
|
|
|
|
|
class JoyOfTech(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://www.geekculture.com/joyoftech/'
|
|
|
|
stripUrl = latestUrl + 'joyarchives/%s.html'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(joyimages/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(joyarchives/[^"]+)') + r'.+?Previous', MULTILINE)
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: nnn'
|
2012-11-21 20:57:26 +00:00
|
|
|
|