# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs from re import compile, IGNORECASE from ..scraper import _BasicScraper from ..helpers import indirectStarter, _PHPScraper class NamirDeiter(_BasicScraper): latestUrl = 'http://www.namirdeiter.com/' stripUrl = latestUrl + 'comics/index.php?date=%s' imageSearch = compile(r'Previous') help = 'Index format: yyyy-mm-dd' class Nervillsaga(_BasicScraper): latestUrl = 'http://www.nervillsaga.com/' stripUrl = latestUrl + 'index.php?s=%s' imageSearch = compile(r'"(pic/.+?)"') prevSearch = compile(r'"(.+?)">Previous') help = 'Index format: nnn' class NewAdventuresOfBobbin(_BasicScraper): latestUrl = 'http://www.bobbin-comic.com/' stripUrl = latestUrl + 'wordpress/?p=%s' imageSearch = compile(r'') help = 'Index format: n' class NewWorld(_BasicScraper): latestUrl = 'http://www.tfsnewworld.com/' stripUrl = latestUrl + '%s' imageSearch = compile(r'Previous') help = 'Index format: yyyy/mm/dd/name' @property def baseUrl(self): return 'http://www.nuklearpower.com/%s/' % (self.shortName,) def starter(self): return self.baseUrl @property def stripUrl(self): return self.baseUrl + '%s' class NP8BitTheater(_NuklearPower): name = 'NuklearPower/8BitTheater' shortName = '8-bit-theater' class NPWarbot(_NuklearPower): name = 'NuklearPower/Warbot' shortName = 'warbot' class NPHIKYM(_NuklearPower): name = 'NuklearPower/HowIKilledYourMaster' shortName = 'hikym' class NPAtomicRobo(_NuklearPower): name = 'NuklearPower/AtomicRobo' shortName = 'atomic-robo' class NekoTheKitty(_PHPScraper): basePath = 'http://www.nekothekitty.net/cusp/' latestUrl = 'latest.php' prevSearch = compile(r"]+alt='Previous Comic'") class NichtLustig(_BasicScraper): stripUrl = 'http://www.nichtlustig.de/toondb/%s.html' imageSearch = compile(r']*>]*id="pfeil_links', IGNORECASE) help = 'Index format: yymmdd' starter = indirectStarter('http://www.nichtlustig.de/main.html', compile(r'\s*PREV') help = 'Index format: year-chapter-page' def setStrip(self, index): self.currentUrl = self.stripUrl % tuple(map(int, index.split('-'))) class Nodwick(_BasicScraper): stripUrl = None 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'