2012-06-20 20:41:04 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
2012-11-21 20:57:26 +00:00
|
|
|
# Copyright (C) 2012 Bastian Kleineidam
|
2012-06-20 19:58:13 +00:00
|
|
|
|
2012-11-26 06:13:32 +00:00
|
|
|
from re import compile
|
2012-10-11 10:03:12 +00:00
|
|
|
from ..scraper import _BasicScraper
|
2012-12-04 06:02:40 +00:00
|
|
|
from ..helpers import indirectStarter, bounceStarter
|
2012-11-21 20:57:26 +00:00
|
|
|
from ..util import tagre
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class NamirDeiter(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.namirdeiter.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'comics/index.php?date=%s'
|
2012-12-04 06:02:40 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r"'?(http://www\.namirdeiter\.com/comics/\d+\.jpg)'?", quote=""))
|
2012-11-21 20:57:26 +00:00
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.namirdeiter\.com/comics/index\.php\?date=\d+)', quote="'")+"Previous")
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: yyyymmdd'
|
|
|
|
|
|
|
|
|
|
|
|
class NeoEarth(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.neo-earth.com/NE/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'index.php?date=%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(strips/.+?)"')
|
|
|
|
prevSearch = compile(r'<a href="(.+?)">Previous</a>')
|
|
|
|
help = 'Index format: yyyy-mm-dd'
|
|
|
|
|
|
|
|
|
|
|
|
class NewAdventuresOfBobbin(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://www.bobbin-comic.com/bobbin_strips/'
|
|
|
|
imageSearch = compile(tagre("a", "href", r'(\d+\.gif)'))
|
2012-12-07 23:45:18 +00:00
|
|
|
multipleImagesPerStrip = True
|
2012-11-21 20:57:26 +00:00
|
|
|
prevSearch = None
|
|
|
|
help = 'Index format: none'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class NewWorld(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.tfsnewworld.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + '%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(http://www.tfsnewworld.com/comics/.+?)"')
|
|
|
|
prevSearch = compile(r'<div class="nav-previous"><a href="([^"]+)" rel="prev">')
|
|
|
|
help = 'Index format: yyyy/mm/dd/stripn'
|
|
|
|
|
|
|
|
|
|
|
|
class Nicky510(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://www.nickyitis.com/'
|
|
|
|
stripUrl = latestUrl + '%s/'
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://www\.nickyitis\.com/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.nickyitis\.com/comic/[^"]+)', after="Previous"))
|
|
|
|
help = 'Index format: stripname'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class NoNeedForBushido(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://noneedforbushido.com/latest/'
|
2012-12-02 17:35:06 +00:00
|
|
|
stripUrl = 'http://noneedforbushido.com/%s/'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://noneedforbushido\.com/comics/comic/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://noneedforbushido\.com/[^"]+)', after="previous-comic-link"))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: yyyy/comic/nnn'
|
|
|
|
|
|
|
|
|
|
|
|
class Nukees(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.nukees.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'd/%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'"comic".+?"(/comics/.+?)"')
|
|
|
|
prevSearch = compile(r'"(/d/.+?)".+?previous')
|
|
|
|
help = 'Index format: yyyymmdd.html'
|
|
|
|
|
|
|
|
|
2012-12-04 06:02:40 +00:00
|
|
|
class NekoTheKitty(_BasicScraper):
|
|
|
|
basePath = 'http://www.nekothekitty.net/'
|
|
|
|
stripUrl = basePath + 'comics/%s'
|
|
|
|
starter = bounceStarter(basePath, compile(tagre("a", "href", r'(http://www\.nekothekitty\.net/comics/[^"]+)') +
|
|
|
|
tagre("img", "src", r'http://www\.nekothekitty\.net/files/smallnext.png')))
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://(?:img\d+|www)\.smackjeeves\.com/images/uploaded/comics/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://www\.nekothekitty\.net/comics/[^"]+)') +
|
2012-11-21 20:57:26 +00:00
|
|
|
tagre("img", "src", r'http://www\.nekothekitty\.net/files/smallprev.png'))
|
2012-12-04 06:02:40 +00:00
|
|
|
help = 'Index format: n/n-name'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class NichtLustig(_BasicScraper):
|
2012-12-04 06:02:40 +00:00
|
|
|
stripUrl = 'http://static.nichtlustig.de/toondb/%s.html'
|
2012-11-21 20:57:26 +00:00
|
|
|
imageSearch = compile('background-image:url\((http://static\.nichtlustig\.de/comics/full/\d+\.jpg)')
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://static\.nichtlustig\.de/toondb/\d+\.html)'))
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: yymmdd'
|
|
|
|
starter = indirectStarter('http://www.nichtlustig.de/main.html',
|
2012-11-21 20:57:26 +00:00
|
|
|
compile(tagre("a", "href", r'([^"]*toondb/\d+\.html)')))
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Nodwick(_BasicScraper):
|
2012-11-21 20:57:26 +00:00
|
|
|
latestUrl = 'http://comic.nodwick.com/'
|
|
|
|
stripUrl = latestUrl + "?p=%s"
|
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://comic\.nodwick\.com/nodwickstrips/[^"]+)'))
|
|
|
|
prevSearch = compile(tagre("a", "href", r'(http://comic\.nodwick\.com/\?p=\d+)', after="prev"))
|
|
|
|
help = 'Index format: stripnumber'
|
2012-06-20 19:58:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
class NekkoAndJoruba(_BasicScraper):
|
|
|
|
latestUrl = 'http://www.nekkoandjoruba.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + '?p=%s'
|
2012-06-20 19:58:13 +00:00
|
|
|
imageSearch = compile(r'<img src="(http://www.nekkoandjoruba.com/comics/.+?)"')
|
|
|
|
prevSearch = compile(r'<a href="(.+?)">‹</a>')
|
|
|
|
help = 'Index format: nnn'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class NobodyScores(_BasicScraper):
|
|
|
|
latestUrl = 'http://nobodyscores.loosenutstudio.com/'
|
2012-11-20 17:53:53 +00:00
|
|
|
stripUrl = latestUrl + 'index.php?id=%s'
|
2012-12-04 06:02:40 +00:00
|
|
|
imageSearch = compile(tagre("img", "src", r'(http://nobodyscores\.loosenutstudio\.com/comix/[^"]+)'))
|
|
|
|
multipleImagesPerStrip = True
|
2012-11-20 17:53:53 +00:00
|
|
|
prevSearch = compile(r'<a href="(http://nobodyscores\.loosenutstudio\.com/index.php.+?)">the one before </a>')
|
2012-06-20 19:58:13 +00:00
|
|
|
help = 'Index format: nnn'
|