Some small module fixes.
This commit is contained in:
parent
5359dd8629
commit
3b6af33ecb
3 changed files with 7 additions and 22 deletions
|
@ -36,21 +36,6 @@ class CaptainSNES(_BasicScraper):
|
||||||
help = 'Index format: yyyy/mm/dd/nnn-stripname'
|
help = 'Index format: yyyy/mm/dd/nnn-stripname'
|
||||||
|
|
||||||
|
|
||||||
class Carciphona(_BasicScraper):
|
|
||||||
url = 'http://carciphona.com/'
|
|
||||||
imageSearch = compile(tagre("div", "style",
|
|
||||||
r'background-image:url\((_pages[^)]*)\)'))
|
|
||||||
prevSearch = compile(tagre("a", "href", r'(view\.php\?[^"]*)',
|
|
||||||
after="prevarea"))
|
|
||||||
latestSearch = compile(tagre("a", "href",
|
|
||||||
r'(view\.php\?page=[0-9]+[^"]*)'))
|
|
||||||
starter = indirectStarter
|
|
||||||
|
|
||||||
def namer(self, image_url, page_url):
|
|
||||||
ip = image_url.split('/')
|
|
||||||
return "volume_%s_page_%s" % (ip[-2], ip[-1])
|
|
||||||
|
|
||||||
|
|
||||||
class CaseyAndAndy(_BasicScraper):
|
class CaseyAndAndy(_BasicScraper):
|
||||||
url = 'http://www.galactanet.com/comic/'
|
url = 'http://www.galactanet.com/comic/'
|
||||||
stripUrl = url + 'view.php?strip=%s'
|
stripUrl = url + 'view.php?strip=%s'
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
# Copyright (C) 2015-2016 Tobias Gruetzmacher
|
# Copyright (C) 2015-2017 Tobias Gruetzmacher
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function
|
from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
from re import compile, escape
|
from re import compile, escape
|
||||||
|
|
||||||
from ..scraper import _BasicScraper
|
from ..scraper import _BasicScraper, _ParserScraper
|
||||||
from ..util import tagre
|
from ..util import tagre
|
||||||
from ..helpers import indirectStarter
|
from ..helpers import indirectStarter
|
||||||
from .common import _ComicControlScraper, xpath_class
|
from .common import _ComicControlScraper, xpath_class
|
||||||
|
@ -23,12 +23,12 @@ class JackCannon(_BasicScraper):
|
||||||
help = 'Index format: yyyy/mm/dd/page-nnn'
|
help = 'Index format: yyyy/mm/dd/page-nnn'
|
||||||
|
|
||||||
|
|
||||||
class JerkCity(_BasicScraper):
|
class JerkCity(_ParserScraper):
|
||||||
url = 'http://www.jerkcity.com/'
|
url = 'http://www.jerkcity.com/'
|
||||||
stripUrl = url + '_jerkcity%s.html'
|
stripUrl = url + 'jerkcity%s.html'
|
||||||
firstStripUrl = stripUrl % '1'
|
firstStripUrl = stripUrl % '1'
|
||||||
imageSearch = compile(tagre("img", "src", r'(/jerkcity[^"]+)'))
|
imageSearch = '//div[@id="rapist"]//img'
|
||||||
prevSearch = compile(tagre("a", "href", r'(/_jerkcity[^"]+)') + r'<<Previous')
|
prevSearch = '//div[@id="rapist"]/a'
|
||||||
help = 'Index format: n'
|
help = 'Index format: n'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ class Marilith(_BasicScraper):
|
||||||
|
|
||||||
|
|
||||||
class MarriedToTheSea(_ParserScraper):
|
class MarriedToTheSea(_ParserScraper):
|
||||||
url = 'http://www.marriedtothesea.com/'
|
url = 'http://marriedtothesea.com/'
|
||||||
stripUrl = url + '%s'
|
stripUrl = url + '%s'
|
||||||
firstStripUrl = stripUrl % '022806'
|
firstStripUrl = stripUrl % '022806'
|
||||||
imageSearch = '//div[%s]//p/img' % xpath_class('jumbotron')
|
imageSearch = '//div[%s]//p/img' % xpath_class('jumbotron')
|
||||||
|
|
Loading…
Reference in a new issue