Fix LookingForGroup
This commit is contained in:
parent
6364b34233
commit
4d9eb7df4b
1 changed files with 10 additions and 4 deletions
|
@ -8,7 +8,7 @@ from __future__ import absolute_import, division, print_function
|
||||||
from re import compile, escape
|
from re import compile, escape
|
||||||
|
|
||||||
from ..scraper import _BasicScraper, _ParserScraper
|
from ..scraper import _BasicScraper, _ParserScraper
|
||||||
from ..helpers import bounceStarter, indirectStarter, xpath_class
|
from ..helpers import bounceStarter, indirectStarter
|
||||||
from ..util import tagre
|
from ..util import tagre
|
||||||
from .common import (_ComicControlScraper, _WordPressScraper, _WPNaviIn,
|
from .common import (_ComicControlScraper, _WordPressScraper, _WPNaviIn,
|
||||||
WP_LATEST_SEARCH)
|
WP_LATEST_SEARCH)
|
||||||
|
@ -124,9 +124,15 @@ class LoFiJinks(_WPNaviIn):
|
||||||
|
|
||||||
|
|
||||||
class LookingForGroup(_ParserScraper):
|
class LookingForGroup(_ParserScraper):
|
||||||
url = 'http://www.lfg.co/latest-comic/'
|
url = 'https://www.lfg.co/'
|
||||||
stripUrl = 'http://www.lfg.co/page/%s/'
|
stripUrl = url + 'page/%s/'
|
||||||
firstStripUrl = stripUrl % '1'
|
firstStripUrl = stripUrl % '1'
|
||||||
imageSearch = '//div[@id="comic-img"]//img'
|
imageSearch = '//div[@id="comic-img"]//img'
|
||||||
prevSearch = '//a[%s]' % xpath_class('comic-nav-prev')
|
prevSearch = '//a[@class="comic-nav-prev"]'
|
||||||
|
latestSearch = '//div[@id="feature-lfg-footer"]/a[contains(@href, "page/")]'
|
||||||
|
starter = indirectStarter
|
||||||
help = 'Index format: nnn'
|
help = 'Index format: nnn'
|
||||||
|
|
||||||
|
def namer(self, imageUrl, pageUrl):
|
||||||
|
page = pageUrl.rstrip('/').rsplit('/', 1)[-1]
|
||||||
|
return page.replace('2967', '647')
|
||||||
|
|
Loading…
Reference in a new issue