Merge pull request #28 from KevinAnthony/master
added comic Blooming Faeries
This commit is contained in:
commit
abd80a1d35
1 changed files with 26 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
from re import compile, escape
|
||||
|
||||
from ..util import tagre
|
||||
from ..util import tagre, getPageContent
|
||||
from ..scraper import _BasicScraper, _ParserScraper
|
||||
from ..helpers import indirectStarter
|
||||
|
||||
|
@ -151,6 +151,31 @@ class Blip(_BasicScraper):
|
|||
if prevUrl:
|
||||
return prevUrl.replace("www.blipcomic.com", "blipcomic.com")
|
||||
|
||||
class BloomingFaeries(_BasicScraper):
|
||||
adult = True
|
||||
url = 'http://www.bloomingfaeries.com/'
|
||||
rurl = escape(url)
|
||||
stripUrl = url + 'comic/public/%s/'
|
||||
firstStripUrl = stripUrl % "pit-stop"
|
||||
imageSearch = compile(tagre("img", "src", r'http://www.bloomingfaeries.com/wp-content/uploads([^"]+)', after='title'))
|
||||
prevSearch = compile(tagre("a", "href", r'([^"]+)', after='comic-nav-base comic-nav-previous'))
|
||||
help = 'Index format: stripname'
|
||||
|
||||
@classmethod
|
||||
def imageUrlModifier(cls, imageUrl, data):
|
||||
if imageUrl:
|
||||
return imageUrl.replace("http://www.bloomingfaeries.com/","http://www.bloomingfaeries.com/wp-content/uploads/")
|
||||
|
||||
@classmethod
|
||||
def namer(cls, imageUrl, pageUrl):
|
||||
bf = imageUrl.split('/')
|
||||
name = bf[-1]
|
||||
re = compile(tagre("div","class",r'comic-id-([^"]+)'))
|
||||
content = getPageContent(pageUrl, cls.session)
|
||||
match = re.search(content)
|
||||
if not match:
|
||||
return None
|
||||
return "BF%s_%s" % (match.group(1),name)
|
||||
|
||||
class BMovieComic(_BasicScraper):
|
||||
url = 'http://www.bmoviecomic.com/'
|
||||
|
|
Loading…
Reference in a new issue