# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2013 Bastian Kleineidam
from re import compile, IGNORECASE
from ..scraper import _BasicScraper
from ..helpers import indirectStarter
from ..util import tagre
class TheDevilsPanties(_BasicScraper):
url = 'http://thedevilspanties.com/'
stripUrl = url + 'archives/%s'
imageSearch = compile(tagre("img", "src", r'(http://cdn\.thedevilspanties\.com/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/archives/\d+)', after="Previous"))
help = 'Index format: number'
class TheNoob(_BasicScraper):
url = 'http://www.thenoobcomic.com/index.php'
stripUrl = url + '?pos=%s'
imageSearch = compile(tagre("img", "src", r'(/headquarters/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(\?pos=\d+)', before="comic_nav_previous_button"))
help = 'Index format: nnnn'
class TheOrderOfTheStick(_BasicScraper):
url = 'http://www.giantitp.com/comics/oots0863.html'
stripUrl = 'http://www.giantitp.com/comics/oots%s.html'
imageSearch = compile(r'')
prevSearch = compile(r'')
multipleImagesPerStrip = True
prevSearch = compile(r'\d{4} -\s+\d{4}')
help = 'Index format: nnn'
class TheWotch(_BasicScraper):
url = 'http://www.thewotch.com/'
stripUrl = url + '?date=%s'
imageSearch = compile(r"', IGNORECASE)
prevSearch = compile(r' previous', IGNORECASE)
help = 'Index format: twb or wb + n wg. twb1000'
class HMHigh(_BasicScraper):
name = 'TheFallenAngel/HMHigh'
url = 'http://www.thefallenangel.co.uk/hmhigh/'
stripUrl = url + '?id=%s'
imageSearch = compile(r'Prev')
help = 'Index format: nnn'
class TheOuterQuarter(_BasicScraper):
url = 'http://theouterquarter.com/'
stripUrl = url + 'comic/%s'
imageSearch = compile(r'')
help = 'Index format: nnn'
class TracyAndTristan(_BasicScraper):
url = 'http://tandt.thecomicseries.com/'
stripUrl = url + 'comics/%s'
imageSearch = compile(tagre("img", "src", r'(http://tandt\.thecomicseries\.com/images/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(/comics/\d+)', after="prev"))
help = 'Index format: number'