From 1400879dc82035320dc4af4debcbd60f2b59d2a2 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Wed, 17 May 2017 00:11:29 +0200 Subject: [PATCH] Fix another set of modules (e, k). --- dosagelib/plugins/e.py | 50 +++++++++++----------------------------- dosagelib/plugins/k.py | 12 ---------- dosagelib/plugins/old.py | 2 ++ 3 files changed, 16 insertions(+), 48 deletions(-) diff --git a/dosagelib/plugins/e.py b/dosagelib/plugins/e.py index 2b92d0eba..3607c667c 100644 --- a/dosagelib/plugins/e.py +++ b/dosagelib/plugins/e.py @@ -15,16 +15,10 @@ from .common import _WordPressScraper, WP_LATEST_SEARCH class EarthsongSaga(_ParserScraper): - url = 'http://earthsongsaga.com/index.php' - starter = indirectStarter + url = 'http://earthsongsaga.com/vol5/epilogue5.php' imageSearch = '//div[@id="comic"]//img' prevSearch = '//a[@title="Previous"]' - latestSearch = '//div[@id="leftmenu"]/span[1]/a[1]' - - def fetchUrls(self, url, data, urlSearch): - urls = super(EarthsongSaga, self).fetchUrls(url, data, urlSearch) - return [x.replace('earthsongsaga.com/../', - 'earthsongsaga.com/') for x in urls] + endOfLife = True def namer(self, image_url, page_url): imgmatch = compile(r'images/vol(\d+)/ch(\d+)/(.*)\.\w+$', @@ -71,14 +65,6 @@ class EdmundFinney(_WordPressScraper): prevSearch = '//a[%s]' % xpath_class('navi-prev') -class EerieCuties(_BasicScraper): - url = 'http://www.eeriecuties.com/' - stripUrl = url + 'strips-ec/%s' - imageSearch = compile(tagre("img", "src", r'(http://ace\.eeriecuties\.com/comics/[^"]+)')) - prevSearch = compile(tagre("a", "href", r'([^"]+)', before="prev")) - help = 'Index format: stripname' - - class ElfOnlyInn(_BasicScraper): url = 'http://www.elfonlyinn.net/' stripUrl = url + 'd/%s.html' @@ -139,23 +125,17 @@ class Eryl(_WordPressScraper): starter = indirectStarter -class EverybodyLovesEricRaymond(_BasicScraper): +class EverybodyLovesEricRaymond(_ParserScraper): url = 'http://geekz.co.uk/lovesraymond/' - stripUrl = url + 'archive/%s' - firstStripUrl = stripUrl % 'slashdotted' - imageSearch = compile(r'') - help = 'Index format: name-of-old-comic' + firstStripUrl = url + 'archive/slashdotted' + imageSearch = '//div[%s]//img' % xpath_class('entry-content') + prevSearch = '//a[@rel="prev"]' -# Seems to be GeoBlocked from Europe? -class EvilDiva(_BasicScraper): +# Seems to be GeoBlocked from Germany? +class EvilDiva(_WordPressScraper): url = 'http://www.evildivacomics.com/' - stripUrl = url + '?p=%s' - firstStripUrl = stripUrl % '145' - imageSearch = compile(r'(/comics/.+?)"') - prevSearch = compile(r'http.+?com/(.+?)".+?"prev') - help = 'Index format: n (unpadded)' + firstStripUrl = url + 'comic/evil-diva-issue-1-cover/' class EvilInc(_WordPressScraper): @@ -173,14 +153,12 @@ class Evilish(_ParserScraper): help = 'Index format: yyyymmdd' -class Exiern(_BasicScraper): +class Exiern(_WordPressScraper): url = 'http://www.exiern.com/' - rurl = escape(url) - stripUrl = url + '%s/' - firstStripUrl = stripUrl % '2005/09/06/so-far' - imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after="prev")) - help = 'Index format: yyyy/mm/dd/stripname' + firstStripUrl = url + '2005/09/06/so-far/' + imageSearch = ('//div[@id="comic"]//img', + '//div[%s]//img' % xpath_class('entry')) + prevSearch = '//a[%s]' % xpath_class('navi-prev') class ExploitationNow(_WordPressScraper): diff --git a/dosagelib/plugins/k.py b/dosagelib/plugins/k.py index dd6e19eb5..5b1ab9c9b 100644 --- a/dosagelib/plugins/k.py +++ b/dosagelib/plugins/k.py @@ -56,18 +56,6 @@ class Krakow(_BasicScraper): help = 'Index format: yyyymmdd' -class Kukuburi(_BasicScraper): - baseUrl = 'http://www.kukuburi.com/' - url = baseUrl + 'current/' - stripUrl = baseUrl + 'v2/%s/' - firstStripUrl = stripUrl % '2007/08/09/one' - imageSearch = compile( - tagre("img", "src", r'(http://www\.kukuburi\.com/v2/comics/[^"]+)', - after='alt="[^"]')) - prevSearch = compile(r'nav-previous.+?"(http.+?)"') - help = 'Index format: yyyy/mm/dd/stripname' - - class KuroShouri(_BasicScraper): url = 'http://kuroshouri.com/' rurl = escape(url) diff --git a/dosagelib/plugins/old.py b/dosagelib/plugins/old.py index 5e8ef5059..6490a9034 100644 --- a/dosagelib/plugins/old.py +++ b/dosagelib/plugins/old.py @@ -205,6 +205,7 @@ class Removed(Scraper): cls('DeathToTheExtremist'), cls('DoctorCat', 'brk'), cls('DungeonsAndDenizens'), + cls('EerieCuties'), cls('Ellerbisms'), cls('Eriadan'), cls('EverydayBlues'), @@ -378,6 +379,7 @@ class Removed(Scraper): cls('KeenSpot/AntiheroForHire', 'mov'), cls('Key'), cls('KillerKomics'), + cls('Kukuburi'), cls('Lint'), cls('LinuxComFridayFunnies'), cls('NekkoAndJoruba'),