# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012 Bastian Kleineidam from re import compile, sub from ..scraper import _BasicScraper from ..helpers import indirectStarter, _PHPScraper from ..util import tagre class NamirDeiter(_BasicScraper): latestUrl = 'http://www.namirdeiter.com/' stripUrl = latestUrl + 'comics/index.php?date=%s' imageSearch = compile(tagre("img", "src", r'(http://www\.namirdeiter\.com/comics/\d\.jpg)', quote="")) prevSearch = compile(tagre("a", "href", r'(http://www\.namirdeiter\.com/comics/index\.php\?date=\d+)', quote="'")+"Previous") help = 'Index format: yyyymmdd' class NeoEarth(_BasicScraper): latestUrl = 'http://www.neo-earth.com/NE/' stripUrl = latestUrl + 'index.php?date=%s' imageSearch = compile(r'Previous') help = 'Index format: yyyy-mm-dd' class NewAdventuresOfBobbin(_BasicScraper): latestUrl = 'http://www.bobbin-comic.com/bobbin_strips/' imageSearch = compile(tagre("a", "href", r'(\d+\.gif)')) prevSearch = None help = 'Index format: none' class NewWorld(_BasicScraper): latestUrl = 'http://www.tfsnewworld.com/' stripUrl = latestUrl + '%s' imageSearch = compile(r'') help = 'Index format: nnn' class NobodyScores(_BasicScraper): latestUrl = 'http://nobodyscores.loosenutstudio.com/' stripUrl = latestUrl + 'index.php?id=%s' imageSearch = compile(r'>the one before ') help = 'Index format: nnn'