2016-05-20 23:18:42 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2012-12-12 16:41:29 +00:00
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
2014-01-05 15:50:57 +00:00
|
|
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
2016-05-20 23:18:42 +00:00
|
|
|
# Copyright (C) 2015-2016 Tobias Gruetzmacher
|
|
|
|
|
|
|
|
from __future__ import absolute_import, division, print_function
|
2012-12-12 16:41:29 +00:00
|
|
|
|
|
|
|
from re import compile
|
2016-05-20 23:18:42 +00:00
|
|
|
|
|
|
|
from ..scraper import _BasicScraper
|
2012-12-12 16:41:29 +00:00
|
|
|
from ..util import tagre
|
2016-05-20 23:18:42 +00:00
|
|
|
from .common import _WordPressScraper
|
|
|
|
|
|
|
|
|
|
|
|
class PetiteSymphony(_BasicScraper):
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://[a-z0-9]+\.petitesymphony\.com/files/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://[a-z0-9]+\.petitesymphony\.com/comic/[^"]+)', after="navi-prev"))
|
|
|
|
multipleImagesPerStrip = True
|
|
|
|
help = 'Index format: named number'
|
|
|
|
|
|
|
|
def __init__(self, name):
|
|
|
|
super(PetiteSymphony, self).__init__('PetiteSymphony/' +
|
|
|
|
name.capitalize())
|
|
|
|
self.url = 'http://%s.petitesymphony.com/' % name
|
|
|
|
self.stripUrl = self.url + 'comic/%s'
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def getmodules(cls):
|
|
|
|
return [
|
|
|
|
cls("knuckleup"),
|
|
|
|
cls("kickinrad"),
|
|
|
|
cls("orangegrind"),
|
|
|
|
cls("rascals"),
|
|
|
|
cls("sangria"),
|
|
|
|
cls("seed"),
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
class ComicsBreak(_WordPressScraper):
|
|
|
|
|
|
|
|
def __init__(self, name):
|
|
|
|
super(ComicsBreak, self).__init__('ComicsBreak/' + name)
|
|
|
|
self.url = 'http://%s.comicsbreak.com/' % name.lower()
|
2012-12-12 16:41:29 +00:00
|
|
|
|
2016-05-20 23:18:42 +00:00
|
|
|
@classmethod
|
|
|
|
def getmodules(cls):
|
|
|
|
return [
|
|
|
|
cls("Djandora"),
|
|
|
|
cls("Generation17"),
|
|
|
|
]
|