from re import compile, IGNORECASE from ..helpers import _BasicScraper, indirectStarter, _PHPScraper class NamirDeiter(_BasicScraper): latestUrl = 'http://www.namirdeiter.com/' imageUrl = 'http://www.namirdeiter.com/comics/index.php?date=%s' imageSearch = compile(r'Previous') help = 'Index format: yyyy-mm-dd' class Nervillsaga(_BasicScraper): latestUrl = 'http://www.nervillsaga.com/' imageUrl = 'http://www.nervillsaga.com/index.php?s=%s' imageSearch = compile(r'"(pic/.+?)"') prevSearch = compile(r'"(.+?)">Previous') help = 'Index format: nnn' class NewAdventuresOfBobbin(_BasicScraper): latestUrl = 'http://bobbin-comic.com/' imageUrl = 'http://www.bobbin-comic.com/wordpress/?p=%s' imageSearch = compile(r'') help = 'Index format: n' class NewWorld(_BasicScraper): latestUrl = 'http://www.tfsnewworld.com/' imageUrl = 'http://www.tfsnewworld.com/%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 imageUrl(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): imageUrl = '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.imageUrl % tuple(map(int, index.split('-'))) class Nodwick(_BasicScraper): imageUrl = None imageSearch = compile(r'') help = 'Index format: nnn' class NobodyScores(_BasicScraper): latestUrl = 'http://nobodyscores.loosenutstudio.com/' imageUrl = 'http://nobodyscores.loosenutstudio.com/index.php?id=%s' imageSearch = compile(r'>the one before ') help = 'Index format: nnn'