From bbe3d9f9bef8b885adb52b54fcc120a445d64821 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Wed, 30 Sep 2020 21:13:11 +0200 Subject: [PATCH] Remove WebDesignerCOTW --- dosagelib/plugins/old.py | 2 +- dosagelib/plugins/w.py | 22 +--------------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/dosagelib/plugins/old.py b/dosagelib/plugins/old.py index f5253b835..bae9af712 100644 --- a/dosagelib/plugins/old.py +++ b/dosagelib/plugins/old.py @@ -652,7 +652,7 @@ class Removed(Scraper): cls('GoComics/USAcres'), cls('GoComics/WorldOfWonder'), cls('StuffNoOneToldMe'), - + cls('WebDesignerCOTW'), ) diff --git a/dosagelib/plugins/w.py b/dosagelib/plugins/w.py index 33c949791..a26a1865c 100644 --- a/dosagelib/plugins/w.py +++ b/dosagelib/plugins/w.py @@ -7,7 +7,7 @@ from re import compile, escape, IGNORECASE from ..scraper import _BasicScraper, _ParserScraper from ..util import tagre -from ..helpers import bounceStarter, indirectStarter +from ..helpers import bounceStarter from .common import _ComicControlScraper, _WPNavi, _WPNaviIn, _WPWebcomic @@ -33,26 +33,6 @@ class WebcomicName(_ParserScraper): multipleImagesPerStrip = True -class WebDesignerCOTW(_ParserScraper): - baseUrl = 'https://www.webdesignerdepot.com/' - url = baseUrl + 'category/comics/' - starter = indirectStarter - firstStripUrl = baseUrl + '2009/11/comics-of-the-week-1/' - imageSearch = '//article[d:class("article-content")]//img' - multipleImagesPerStrip = True - prevSearch = '//a[span[d:class("icon-right-small")]]' - latestSearch = '//a[d:class("anim-link")]' - - def shouldSkipUrl(self, url, data): - """Skip non-comic URLs.""" - return 'comics-of-the-week' not in url - - def namer(self, image_url, page_url): - imagename = image_url.rsplit('/', 1)[1] - week = compile(r'week-(\d+)').search(page_url).group(1) - return "%s-%s" % (week, imagename) - - class Weregeek(_ParserScraper): url = 'http://www.weregeek.com/' stripUrl = url + '%s/'