Added SabrinaOnline.

This commit is contained in:
Bastian Kleineidam 2013-04-25 21:14:32 +02:00
parent 3e74dc9956
commit 8418ea471d
2 changed files with 22 additions and 2 deletions

View file

@ -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:

View file

@ -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):