From c0ebf9bbe25f559c812e7fc58f2529573f52ff7a Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 29 Dec 2019 20:53:41 +0100 Subject: [PATCH] Clean up ComicSherpa --- dosagelib/plugins/comicsherpa.py | 12 ++---------- dosagelib/plugins/old.py | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/dosagelib/plugins/comicsherpa.py b/dosagelib/plugins/comicsherpa.py index ea32c3301..13c462a89 100644 --- a/dosagelib/plugins/comicsherpa.py +++ b/dosagelib/plugins/comicsherpa.py @@ -16,6 +16,7 @@ class ComicSherpa(_ParserScraper): def __init__(self, name, path): super(ComicSherpa, self).__init__('ComicSherpa/' + name) + self.session.add_throttle('www.comicssherpa.com', 1.0, 2.0) self.url = 'http://www.comicssherpa.com/site/feature?uc_comic=' + path def getIndexStripUrl(self, index): @@ -35,7 +36,6 @@ class ComicSherpa(_ParserScraper): cls('ACMEINKD', 'csmwt'), cls('AcornPark', 'csdfe'), cls('Adulting', 'cskky'), - cls('AJAndMagnus', 'csrxy'), cls('AllInGoodTime', 'csjhr'), cls('AmandaTheGreat', 'cssyr'), cls('AndNow', 'csnxr'), @@ -65,7 +65,6 @@ class ComicSherpa(_ParserScraper): cls('CourageousManAdventures', 'csgkn'), cls('DadsDay', 'cswly'), cls('DBCartoons', 'csnvt'), - cls('DevinCraneComicStripGhostwriter', 'csadf'), cls('DoghouseInYourSoul', 'cstwx'), cls('DoingTime', 'csvuk'), cls('DontPickTheFlowers', 'cswfs'), @@ -74,17 +73,14 @@ class ComicSherpa(_ParserScraper): cls('DungeonHordes', 'csnlo'), cls('DustSpecks', 'csqgq'), cls('DutchnPals', 'cskqc'), - cls('Dysconnected', 'csxbc'), cls('Econogirl', 'csxoj'), cls('EightballEyeball', 'csnfh'), cls('Elmo', 'csvff'), cls('Endangered', 'cshii'), - cls('Experiment42', 'csbjr'), cls('FamousAndNotSoFamousQuotes', 'csdgz'), cls('FarOut', 'csaem'), cls('FatherOfTheBrood', 'csuul'), - cls('FloydAndTony', 'cszgj'), - cls('FoolsParadise', 'csvnw'), + cls('FoxTheCat', 'csxbc'), cls('FrankAndSteinway', 'cseui'), cls('FriedCritter', 'cshtp'), cls('GarciaCartoonCo', 'csyuw'), @@ -114,7 +110,6 @@ class ComicSherpa(_ParserScraper): cls('LilleysSillies', 'cstka'), cls('LimboRoad', 'csfpp'), cls('LumAndAbner', 'cscji'), - cls('MadDogGhettoCop', 'cskwp'), cls('MarysNature', 'csogt'), cls('Millennialville', 'csxrl'), cls('Milton50', 'csmof'), @@ -127,7 +122,6 @@ class ComicSherpa(_ParserScraper): cls('Mongrels', 'csbjo'), cls('MortsIsland', 'csfyq'), cls('MySonIsADog', 'csfec'), - cls('NavyBean', 'csfiq'), cls('NoAmbiguity', 'csryw'), cls('NoBusinessIKnow', 'csmfg'), cls('NoOrdinaryLife', 'csicr'), @@ -184,7 +178,6 @@ class ComicSherpa(_ParserScraper): cls('TheBoobiehatch', 'csoev'), cls('TheCardinal', 'csfjg'), cls('TheDinkledorfs', 'cszhp'), - cls('TheEntrepiranha', 'cslml'), cls('TheFabulousBushPigs', 'cscqi'), cls('TheGrayZone', 'csmue'), cls('TheGreenMonkeys', 'cscue'), @@ -198,7 +191,6 @@ class ComicSherpa(_ParserScraper): cls('TheQuinnAndFinnShow', 'csynn'), cls('TheRocks', 'cswky'), cls('TheUnemployed', 'csanx'), - cls('TheWagesOfSindy', 'cszff'), cls('Thingsesque', 'cstsq'), cls('TodaysTrump', 'csbrj'), cls('TopicToons', 'csgly'), diff --git a/dosagelib/plugins/old.py b/dosagelib/plugins/old.py index c9eb1981c..0f9d452f0 100644 --- a/dosagelib/plugins/old.py +++ b/dosagelib/plugins/old.py @@ -254,6 +254,7 @@ class Removed(Scraper): cls('GoComics/CowSheepandaGnomeNamedHelga'), cls('GoComics/DabneyandDad'), cls('GoComics/DarrinBell'), + cls('GoComics/DevinCraneComicStripGhostwriter'), cls('GoComics/DialHforHBomb'), cls('GoComics/DitzAbledPrincess'), cls('GoComics/DoodleDaysComics'), @@ -327,6 +328,7 @@ class Removed(Scraper): cls('GoComics/MrMorris'), cls('GoComics/Mulligan'), cls('GoComics/MyGuardianGrandpa'), + cls('GoComics/NavyBean'), cls('GoComics/NeatStep'), cls('GoComics/NedAndLarry'), cls('GoComics/NeighborhoodZone'), @@ -620,7 +622,6 @@ class Renamed(Scraper): cls('GoComics/CharmysArmy', 'ComicSherpa/CharmysArmy'), cls('GoComics/CleoandCompany', 'ComicSherpa/CleoAndCompany'), cls('GoComics/CourageousManAdventures', 'ComicSherpa/CourageousManAdventures'), - cls('GoComics/DevinCraneComicStripGhostwriter', 'ComicSherpa/DevinCraneComicStripGhostwriter'), cls('GoComics/DontPicktheFlowers', 'ComicSherpa/DontPickTheFlowers'), cls('GoComics/Dragin', 'ComicSherpa/Dragin'), cls('GoComics/DumbQuestionBadAnswer', 'ComicSherpa/DumbQuestionBadAnswer'), @@ -646,7 +647,6 @@ class Renamed(Scraper): cls('GoComics/MiscSoup', 'ComicSherpa/MiscSoup'), cls('GoComics/MisterAndMe', 'ComicSherpa/MisterAndMe'), cls('GoComics/MortsIsland', 'ComicSherpa/MortsIsland'), - cls('GoComics/NavyBean', 'ComicSherpa/NavyBean'), cls('GoComics/NoOrdinaryLife', 'ComicSherpa/NoOrdinaryLife'), cls('GoComics/ONIONAndPEA', 'ComicSherpa/ONIONAndPEA'), cls('GoComics/PaddedCell', 'ComicSherpa/PaddedCell'),