moved Footloose, added Cherry, Desigaspring

This commit is contained in:
Damjan Košir 2015-05-31 23:23:02 +12:00
parent 01aeebfbe4
commit c1245a85ad
2 changed files with 17 additions and 8 deletions

View file

@ -115,14 +115,6 @@ class FonFlatter(_BasicScraper):
)
class Footloose(_ParserScraper):
url = 'http://footloosecomic.com/footloose.php'
stripUrl = 'http://footloosecomic.com/footloose.php?comic_id=%s'
imageSearch = '//body/p[1]//img'
prevSearch = '//body/a[2]'
help = 'Index format: n (unpadded)'
class ForLackOfABetterComic(_BasicScraper):
url = 'http://forlackofabettercomic.com/'
rurl = r'http://(?:www\.)?forlackofabettercomic\.com/'

View file

@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from ..scraper import make_scraper, _ParserScraper
def add(name, url):
attrs = dict(
name=name,
url='http://footloosecomic.com/' + url,
imageSearch='//body/p[1]//img',
prevSearch='//body/a[2]'
)
globals()[name] = make_scraper(name, _ParserScraper, **attrs)
add('Cherry', 'cherry/index.php')
add('Desigaspring', 'dspring/index.php')
add('Footloose', 'footloose.php')