# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012 Bastian Kleineidam from re import compile, IGNORECASE from ..scraper import _BasicScraper from ..helpers import indirectStarter from ..util import tagre class TheNoob(_BasicScraper): latestUrl = 'http://www.thenoobcomic.com/index.php' stripUrl = latestUrl + '?pos=%' 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): latestUrl = 'http://www.giantitp.com/comics/oots0863.html' stripUrl = latestUrl + 'comics/oots%s.html' imageSearch = compile(r'') prevSearch = compile(r'') prevSearch = compile(r'-\s*\n\s*\d{4}') help = 'Index format: nnn' class TheWotch(_BasicScraper): latestUrl = 'http://www.thewotch.com/' stripUrl = latestUrl + '?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' latestUrl = 'http://www.thefallenangel.co.uk/hmhigh/' stripUrl = latestUrl + '?id=%s' imageSearch = compile(r'Prev') help = 'Index format: nnn' class TheOuterQuarter(_BasicScraper): latestUrl = 'http://theouterquarter.com/' stripUrl = latestUrl + 'comic/%s' imageSearch = compile(r'