Added SabrinaOnline.
This commit is contained in:
parent
3e74dc9956
commit
8418ea471d
2 changed files with 22 additions and 2 deletions
|
@ -2,7 +2,7 @@ Dosage 2.2 (released xx.xx.2013)
|
|||
|
||||
Features:
|
||||
- comic: Added ARedTailsDream, Carciphona, Curtailed, GirlGenius,
|
||||
Lackadaisy.
|
||||
Lackadaisy, SabrinaOnline.
|
||||
Patch by Dirk Reiners
|
||||
|
||||
Changes:
|
||||
|
|
|
@ -6,7 +6,27 @@ from re import compile, escape, MULTILINE, IGNORECASE, sub
|
|||
from os.path import splitext
|
||||
from ..scraper import _BasicScraper
|
||||
from ..helpers import indirectStarter, bounceStarter
|
||||
from ..util import tagre
|
||||
from ..util import tagre, getPageContent
|
||||
|
||||
|
||||
class SabrinaOnline(_BasicScraper):
|
||||
description = u'Skunks, computers and porn'
|
||||
baseUrl = 'http://sabrina-online.com/'
|
||||
imageSearch = compile(tagre("a", "href", r'(strips/[^"]*)'))
|
||||
prevSearch = compile(tagre("a", "href", r"(\d\d\d\d-\d\d.html)") +
|
||||
tagre("img", "src", "b_back.gif"))
|
||||
help = 'Index format: n (unpadded)'
|
||||
adult = True
|
||||
multipleImagesPerStrip = True
|
||||
|
||||
@classmethod
|
||||
def starter(cls):
|
||||
"""Pick last one in a list of archive pages."""
|
||||
url = cls.baseUrl + 'archive.html'
|
||||
data, baseUrl = getPageContent(url, cls.session)
|
||||
search = compile(tagre("a", "href", r"(\d\d\d\d-\d\d.html)"))
|
||||
archivepages = search.findall(data)
|
||||
return cls.baseUrl + archivepages[-1]
|
||||
|
||||
|
||||
class SailorsunOrg(_BasicScraper):
|
||||
|
|
Loading…
Reference in a new issue