From 3c930167c69ed96502f00d3122af98963e9cfba6 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Thu, 9 Jan 2020 18:04:09 +0100 Subject: [PATCH] Remove some comics which disappeared --- dosagelib/plugins/c.py | 24 +----------------------- dosagelib/plugins/d.py | 15 --------------- dosagelib/plugins/g.py | 11 ----------- dosagelib/plugins/j.py | 13 ++----------- dosagelib/plugins/keenspot.py | 3 +-- dosagelib/plugins/o.py | 18 ------------------ dosagelib/plugins/old.py | 16 +++++++++++++++- dosagelib/plugins/r.py | 17 ----------------- dosagelib/plugins/s.py | 25 ------------------------- dosagelib/plugins/t.py | 19 +------------------ dosagelib/plugins/w.py | 15 +-------------- 11 files changed, 21 insertions(+), 155 deletions(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 7431657c4..a0da4fd7d 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -10,7 +10,7 @@ from re import compile, escape from ..scraper import _BasicScraper, _ParserScraper from ..helpers import bounceStarter, indirectStarter from ..util import tagre -from .common import _TumblrScraper, _WordPressScraper, _WPNavi +from .common import _WordPressScraper, _WPNavi class CampComic(_BasicScraper): @@ -210,19 +210,6 @@ class ChainsawSuit(_WordPressScraper): help = 'Index format: yyyy/mm/dd/stripname' -class Champ2010(_BasicScraper): - baseUrl = 'http://jedcollins.com/champ2010/' - rurl = escape(baseUrl) - # the latest URL is hard coded since the comic is discontinued - url = baseUrl + 'champ-12-30-10.html' - stripUrl = baseUrl + '%s.html' - firstStripUrl = stripUrl % 'champ1-1-10-fuck' - imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, - after="Previous")) - help = 'Index format: yy-dd-mm' - - class ChannelAte(_WPNavi): url = 'http://www.channelate.com/' @@ -294,15 +281,6 @@ class Cloudscratcher(_ParserScraper): starter = indirectStarter -class Collar6(_TumblrScraper): - url = 'http://collar6.tumblr.com/' - firstStripUrl = url + 'post/138117470810/the-very-first-strip-from-when-i-thought-it-was' - imageSearch = '//figure[@class="photo-hires-item"]//img' - prevSearch = '//a[@class="previous-button"]' - latestSearch = '//li[@class="timestamp"]/a' - adult = True - - class CollegeCatastrophe(_ParserScraper): url = 'https://www.tigerknight.com/cc' stripUrl = url + '/%s' diff --git a/dosagelib/plugins/d.py b/dosagelib/plugins/d.py index 3fe596d2f..27f80a0cd 100644 --- a/dosagelib/plugins/d.py +++ b/dosagelib/plugins/d.py @@ -13,21 +13,6 @@ from ..util import tagre from .common import _ComicControlScraper, _WordPressScraper, _WPNaviIn -class DamnLol(_ParserScraper): - url = 'http://www.damnlol.com/' - # Classes for next and previous seem to be swapped... - prevSearch = '//a[%s]' % xpath_class("next") - nextSearch = '//a[%s]' % xpath_class("previous") - imageSearch = '//img[@id="post-image"]' - starter = bounceStarter - - def namer(self, image_url, page_url): - ext = image_url.rsplit('.', 1)[1] - path = page_url.rsplit('/', 1)[1][:-5] - stripname, number = path.rsplit('-', 1) - return '%s-%s.%s' % (number, stripname, ext) - - class Damonk(_BasicScraper): url = 'http://www.damonk.com/' stripUrl = url + 'd/%s.html' diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index dce90dc52..c005d3499 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -98,17 +98,6 @@ class GirlsWithSlingshots(_BasicScraper): help = 'Index format: stripname' -class GlassHalfEmpty(_BasicScraper): - url = 'http://www.defectivity.com/ghe/index.php' - stripUrl = url + '?strip_id=%s' - firstStripUrl = stripUrl % '0' - imageSearch = compile(r'src="(comics/.+?)"') - prevSearch = compile( - tagre("a", "href", r'(\?strip_id=\d+)') + - tagre("img", "src", r'\.\./images/arrowbuttons/onback\.jpg')) - help = 'Index format: nnn' - - class GleefulNihilism(_WordPressScraper): url = ('https://web.archive.org/web/20170911203122/' 'http://gleefulnihilism.com/') diff --git a/dosagelib/plugins/j.py b/dosagelib/plugins/j.py index 89f9eb2fa..1342d5c5e 100644 --- a/dosagelib/plugins/j.py +++ b/dosagelib/plugins/j.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2015-2017 Tobias Gruetzmacher +# Copyright (C) 2015-2020 Tobias Gruetzmacher from __future__ import absolute_import, division, print_function from re import compile, escape -from ..scraper import _BasicScraper, _ParserScraper +from ..scraper import _BasicScraper from ..util import tagre from ..helpers import indirectStarter, xpath_class from .common import _ComicControlScraper @@ -23,15 +23,6 @@ class JackCannon(_BasicScraper): help = 'Index format: yyyy/mm/dd/page-nnn' -class JerkCity(_ParserScraper): - url = 'http://www.jerkcity.com/' - stripUrl = url + 'jerkcity%s.html' - firstStripUrl = stripUrl % '1' - imageSearch = '//div[@id="rapist"]//img' - prevSearch = '//div[@id="rapist"]/a' - help = 'Index format: n' - - class JimBenton(_BasicScraper): url = 'http://www.jimbenton.com/page14/page14.html' stripUrl = 'http://www.jimbenton.com/page14/files/JimBentonComic-%s.html' diff --git a/dosagelib/plugins/keenspot.py b/dosagelib/plugins/keenspot.py index 2f05858c3..da17567a2 100644 --- a/dosagelib/plugins/keenspot.py +++ b/dosagelib/plugins/keenspot.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2015-2017 Tobias Gruetzmacher +# Copyright (C) 2015-2020 Tobias Gruetzmacher from __future__ import absolute_import, division, print_function @@ -77,7 +77,6 @@ class KeenSpot(_ParserScraper): cls('InHere', 'inhere'), cls('JadeWarriors', 'jadewarriors'), cls('Katrina', 'katrina'), - cls('Landis', 'landis'), cls('LutherStrode', 'lutherstrode'), cls('MakeshiftMiracle', 'makeshiftmiracle'), cls('Marksmen', 'marksmen'), diff --git a/dosagelib/plugins/o.py b/dosagelib/plugins/o.py index 36617e300..ece6095d2 100644 --- a/dosagelib/plugins/o.py +++ b/dosagelib/plugins/o.py @@ -106,24 +106,6 @@ class OnTheEdge(_WordPressScraper): firstStripUrl = 'http://ontheedgecomics.com/comic/ote0001/' -class OnTheFastrack(_BasicScraper): - url = 'http://onthefastrack.com/' - stripUrl = url + 'comics/%s' - firstStripUrl = stripUrl % 'november-13-2000' - imageSearch = compile(r'(https://safr\.kingfeatures\.com/idn/cnfeed/zone/js/content\.php\?file=.+)"') - prevSearch = compile(r'id="previouscomic" class="button white">\n<') url = 'http://www.the-whiteboard.com/' diff --git a/dosagelib/plugins/w.py b/dosagelib/plugins/w.py index a83f02070..c2088aa5e 100644 --- a/dosagelib/plugins/w.py +++ b/dosagelib/plugins/w.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2015-2019 Tobias Gruetzmacher +# Copyright (C) 2015-2020 Tobias Gruetzmacher from __future__ import absolute_import, division, print_function @@ -48,15 +48,6 @@ class WebDesignerCOTW(_ParserScraper): return "%s-%s" % (week, imagename) -class WeCanSleepTomorrow(_BasicScraper): - url = 'http://wecansleeptomorrow.com/' - rurl = escape(url) - stripUrl = url + '%s/' - 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' - - class Weregeek(_ParserScraper): url = 'http://www.weregeek.com/' stripUrl = url + '%s/' @@ -209,10 +200,6 @@ class WorldOfMrToast(_BasicScraper): return None -class WorldOfWarcraftEh(_WordPressScraper): - url = 'http://woweh.com/' - - class WormWorldSaga(_BasicScraper): url = 'http://www.wormworldsaga.com/' stripUrl = url + 'chapters/%s/index.php'