Remove dead modules (& format).
This commit is contained in:
parent
3ffe9f5715
commit
90dfceaeb1
1 changed files with 25 additions and 29 deletions
|
@ -1,9 +1,10 @@
|
||||||
# -*- coding: iso-8859-1 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
|
# Copyright (C) 2015-2016 Tobias Gruetzmacher
|
||||||
|
|
||||||
from re import compile, escape, IGNORECASE
|
from re import compile, escape, IGNORECASE
|
||||||
from ..scraper import _BasicScraper, _ParserScraper
|
from ..scraper import _BasicScraper
|
||||||
from ..util import tagre
|
from ..util import tagre
|
||||||
from ..helpers import indirectStarter
|
from ..helpers import indirectStarter
|
||||||
|
|
||||||
|
@ -12,8 +13,11 @@ class KevinAndKell(_BasicScraper):
|
||||||
url = 'http://www.kevinandkell.com/'
|
url = 'http://www.kevinandkell.com/'
|
||||||
stripUrl = url + '%s/kk%s%s.html'
|
stripUrl = url + '%s/kk%s%s.html'
|
||||||
firstStripUrl = stripUrl % ('1995', '09', '03')
|
firstStripUrl = stripUrl % ('1995', '09', '03')
|
||||||
imageSearch = compile(r'<img.+?src="(/?(\d+/)?strips/kk\d+.(gif|jpg))"', IGNORECASE)
|
imageSearch = compile(r'<img.+?src="(/?(\d+/)?strips/kk\d+.(gif|jpg))"',
|
||||||
prevSearch = compile(r'<a.+?href="(/?(\.\./)?\d+/kk\d+\.html)"[^>]*><span>Previous Strip', IGNORECASE)
|
IGNORECASE)
|
||||||
|
prevSearch = compile(
|
||||||
|
r'<a.+?href="(/?(\.\./)?\d+/kk\d+\.html)"[^>]*><span>Previous Strip',
|
||||||
|
IGNORECASE)
|
||||||
help = 'Index format: yyyy-mm-dd'
|
help = 'Index format: yyyy-mm-dd'
|
||||||
|
|
||||||
def getIndexStripUrl(self, index):
|
def getIndexStripUrl(self, index):
|
||||||
|
@ -34,36 +38,21 @@ class KickInTheHead(_BasicScraper):
|
||||||
rurl = escape(url)
|
rurl = escape(url)
|
||||||
stripUrl = url + '%s/'
|
stripUrl = url + '%s/'
|
||||||
firstStripUrl = stripUrl % '2003/03/20/ipod-envy'
|
firstStripUrl = stripUrl % '2003/03/20/ipod-envy'
|
||||||
imageSearch = compile(tagre("img", "src", r'(%skickinthehead3/comics/\d+-\d+-\d+[^"]+)' % rurl))
|
imageSearch = compile(
|
||||||
prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+)' % rurl, after="navi-prev"))
|
tagre("img", "src",
|
||||||
|
r'(%skickinthehead3/comics/\d+-\d+-\d+[^"]+)' % rurl))
|
||||||
|
prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+)' % rurl,
|
||||||
|
after="navi-prev"))
|
||||||
help = 'Index format: yyyy/mm/dd/stripname'
|
help = 'Index format: yyyy/mm/dd/stripname'
|
||||||
|
|
||||||
|
|
||||||
class KillerKomics(_BasicScraper):
|
|
||||||
baseUrl = 'http://www.killerkomics.com/web-comics/'
|
|
||||||
url = baseUrl + 'index_ang.cfm'
|
|
||||||
stripUrl = baseUrl + '%s.cfm'
|
|
||||||
imageSearch = compile(r'<img src="(http://www.killerkomics.com/FichiersUpload/Comics/.+?)"')
|
|
||||||
prevSearch = compile(r'<div id="precedent"><a href="(.+?)"')
|
|
||||||
help = 'Index format: strip-name'
|
|
||||||
|
|
||||||
|
|
||||||
# XXX disallowed by robots.txt
|
|
||||||
class _Kofightclub(_BasicScraper):
|
|
||||||
url = 'http://www.kofightclub.com/'
|
|
||||||
stripUrl = url + 'd/%s.html'
|
|
||||||
imageSearch = compile(tagre("img", "src", r'(\.\./images/\d+[^"]+)'))
|
|
||||||
prevSearch = compile(tagre("a", "href", r'((?:http://www\.kofightclub\.com)?/d/\d+\.html)')
|
|
||||||
+ tagre("img", "alt", "Previous comic"))
|
|
||||||
help = 'Index format: yyyymmdd'
|
|
||||||
|
|
||||||
|
|
||||||
class Krakow(_BasicScraper):
|
class Krakow(_BasicScraper):
|
||||||
url = 'http://www.krakow.krakowstudios.com/'
|
url = 'http://www.krakow.krakowstudios.com/'
|
||||||
stripUrl = url + 'archive.php?date=%s'
|
stripUrl = url + 'archive.php?date=%s'
|
||||||
firstStripUrl = stripUrl % '20081111'
|
firstStripUrl = stripUrl % '20081111'
|
||||||
imageSearch = compile(r'<img src="(comics/.+?)"')
|
imageSearch = compile(r'<img src="(comics/.+?)"')
|
||||||
prevSearch = compile(r'<a href="(archive\.php\?date=.+?)"><img border=0 name=previous_day')
|
prevSearch = compile(
|
||||||
|
r'<a href="(archive\.php\?date=.+?)"><img border=0 name=previous_day')
|
||||||
help = 'Index format: yyyymmdd'
|
help = 'Index format: yyyymmdd'
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,7 +61,9 @@ class Kukuburi(_BasicScraper):
|
||||||
url = baseUrl + 'current/'
|
url = baseUrl + 'current/'
|
||||||
stripUrl = baseUrl + 'v2/%s/'
|
stripUrl = baseUrl + 'v2/%s/'
|
||||||
firstStripUrl = stripUrl % '2007/08/09/one'
|
firstStripUrl = stripUrl % '2007/08/09/one'
|
||||||
imageSearch = compile(tagre("img", "src", r'(http://www\.kukuburi\.com/v2/comics/[^"]+)', after='alt="[^"]'))
|
imageSearch = compile(
|
||||||
|
tagre("img", "src", r'(http://www\.kukuburi\.com/v2/comics/[^"]+)',
|
||||||
|
after='alt="[^"]'))
|
||||||
prevSearch = compile(r'nav-previous.+?"(http.+?)"')
|
prevSearch = compile(r'nav-previous.+?"(http.+?)"')
|
||||||
help = 'Index format: yyyy/mm/dd/stripname'
|
help = 'Index format: yyyy/mm/dd/stripname'
|
||||||
|
|
||||||
|
@ -81,7 +72,12 @@ class KuroShouri(_BasicScraper):
|
||||||
url = 'http://kuroshouri.com/'
|
url = 'http://kuroshouri.com/'
|
||||||
rurl = escape(url)
|
rurl = escape(url)
|
||||||
stripUrl = url + '?webcomic_post=%s'
|
stripUrl = url + '?webcomic_post=%s'
|
||||||
imageSearch = compile(tagre("img", "src", r"(%swp-content/webcomic/kuroshouri/[^'\"]+)" % rurl, quote="['\"]"))
|
imageSearch = compile(
|
||||||
prevSearch = compile(tagre("a", "href", r'(%s\?webcomic_post\=[^"]+)' % rurl, after="previous"))
|
tagre("img", "src",
|
||||||
|
r"(%swp-content/webcomic/kuroshouri/[^'\"]+)" % rurl,
|
||||||
|
quote="['\"]"))
|
||||||
|
prevSearch = compile(
|
||||||
|
tagre("a", "href", r'(%s\?webcomic_post\=[^"]+)' % rurl,
|
||||||
|
after="previous"))
|
||||||
help = 'Index format: chapter-n-page-m'
|
help = 'Index format: chapter-n-page-m'
|
||||||
starter = indirectStarter(url, prevSearch)
|
starter = indirectStarter(url, prevSearch)
|
||||||
|
|
Loading…
Reference in a new issue