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