Remove make_scraper magic from footloosecomic.py.
This commit is contained in:
parent
7f7a69818b
commit
64f7e313d5
1 changed files with 10 additions and 12 deletions
|
@ -1,17 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from ..scraper import make_scraper, _ParserScraper
|
||||
from __future__ import unicode_literals
|
||||
from ..scraper import _ParserScraper
|
||||
|
||||
|
||||
def add(name, url):
|
||||
attrs = dict(
|
||||
name=name,
|
||||
url='http://footloosecomic.com/' + url,
|
||||
imageSearch='//body/p[1]//img',
|
||||
class Footloose(_ParserScraper):
|
||||
url = 'http://footloosecomic.com/footloose.php'
|
||||
imageSearch='//body/p[1]//img'
|
||||
prevSearch='//body/a[2]'
|
||||
)
|
||||
globals()[name] = make_scraper(name, _ParserScraper, **attrs)
|
||||
|
||||
class Cherry(Footloose):
|
||||
url = 'http://footloosecomic.com/cherry/index.php'
|
||||
|
||||
class Desigaspring(Footloose):
|
||||
url = 'http://footloosecomic.com/dspring/index.php'
|
||||
|
||||
add('Cherry', 'cherry/index.php')
|
||||
add('Desigaspring', 'dspring/index.php')
|
||||
add('Footloose', 'footloose.php')
|
||||
|
|
Loading…
Reference in a new issue