From e86526f21a03334da5e8833281258748787dd7aa Mon Sep 17 00:00:00 2001 From: garbled1 Date: Sat, 14 Aug 2021 08:17:38 -0700 Subject: [PATCH] Add a few new comics --- dosagelib/plugins/comicfury.py | 9 +++++++-- dosagelib/plugins/r.py | 7 +++++++ dosagelib/plugins/webtoons.py | 3 +++ dosagelib/plugins/y.py | 8 +++++++- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/comicfury.py b/dosagelib/plugins/comicfury.py index 105cd724f..ff98e2ef4 100644 --- a/dosagelib/plugins/comicfury.py +++ b/dosagelib/plugins/comicfury.py @@ -27,10 +27,12 @@ class ComicFury(_ParserScraper): u'//nav//a[contains(text(), "\u2039")]', # LatchkeyKingdom '//a[d:class("navi") and img[contains(@src, "Previous")]]', - # RedSpot - '//a[contains(text(), "Back")]', # KATRAN '//a[contains(text(), "Previous")]', + # MansionofE + '//a[img[contains(@alt, "PREVIOUS")]]', + # RedSpot + '//a[contains(text(), "Back")]', ) nextSearch = ( '//link[@rel="next"]', @@ -45,6 +47,8 @@ class ComicFury(_ParserScraper): '//a[d:class("navi") and img[contains(@src, "Next")]]', # RedSpot, KATRAN '//a[contains(text(), "Next")]', + # MansionofE + '//a[img[contains(@alt, "NEXT")]]', ) help = 'Index format: n' starter = bounceStarter @@ -969,6 +973,7 @@ class ComicFury(_ParserScraper): cls('TheLegendaryPixelCrew', 'thelegendarypixelcrew'), cls('TheLegendOfLink', 'legendoflink'), cls('TheLozoyas', 'thelozoyas'), + cls('TheMansionofE', 'mansionofe'), cls('TheMates', 'themates'), cls('TheMatesPortugus', 'matespt', 'pt'), cls('TheMeaningOfLife', 'themeaningoflife'), diff --git a/dosagelib/plugins/r.py b/dosagelib/plugins/r.py index 0041b5237..b498368f4 100644 --- a/dosagelib/plugins/r.py +++ b/dosagelib/plugins/r.py @@ -105,6 +105,13 @@ class RedMeat(_ParserScraper): return '_'.join(parts[1:3]) +class Requiem(_WordPressScraper): + baseUrl = 'http://requiem.spiderforest.com/' + url = baseUrl + '?latest' + stripUrl = baseUrl + 'comic/%s' + firstStripUrl = stripUrl % '2004-06-07-3' + + class Replay(_ParserScraper): url = 'http://replaycomic.com/' stripUrl = url + 'comic/%s/' diff --git a/dosagelib/plugins/webtoons.py b/dosagelib/plugins/webtoons.py index afded9b37..2a2c6fe91 100644 --- a/dosagelib/plugins/webtoons.py +++ b/dosagelib/plugins/webtoons.py @@ -358,12 +358,14 @@ class WebToons(_ParserScraper): cls('StrawberrySeafoam', 'fantasy/strawberry-seafoam', 1248), cls('SubtleDisaster', 'drama/subtle-disaster', 350), cls('SubZero', 'romance/subzero', 1468), + cls('SuitorArmor', 'fantasy/suitor-armor', 2159), cls('SuperSecret', 'romance/super-secret', 666), cls('SupersonicGirl', 'super-hero/supersonic-girl', 633), cls('SweetHome', 'thriller/sweethome', 1285), cls('SwimmingLessonsForAMermaid', 'romance/swimming-lessons-for-a-mermaid', 1912), cls('SwordInterval', 'supernatural/sword-interval', 486), cls('TalesOfTheUnusual', 'horror/tales-of-the-unusual', 68), + cls('TheAdvancedPlayerOfTheTutorialTower', 'action/the-advanced-player-of-the-tutorial-tower', 2409), cls('TheBadguys', 'super-hero/the-bad-guys', 701), cls('TheBrooklynite', 'super-hero/the-brooklynite', 813), cls('TheCliff', 'thriller/the-cliff', 80), @@ -409,6 +411,7 @@ class WebToons(_ParserScraper): cls('UndeadEd', 'supernatural/undeaded', 468), cls('UnderPrin', 'supernatural/underprin', 78), cls('UnderTheAegis', 'fantasy/under-the-aegis', 436), + cls('UnholyBlood', 'supernatural/unholy-blood', 1262), cls('UnknownCaller', 'thriller/ar-toon', 775), cls('UnlovableReplacement', 'romance/unlovable-replacement', 1762), cls('UnluckyIsAsLuckyDoes', 'comedy/unlucky-is-as-lucky-does', 1554), diff --git a/dosagelib/plugins/y.py b/dosagelib/plugins/y.py index ecd75a33c..fa8784677 100644 --- a/dosagelib/plugins/y.py +++ b/dosagelib/plugins/y.py @@ -7,8 +7,14 @@ from .common import _WordPressScraper, _WPWebcomic class YAFGC(_WordPressScraper): - url = 'http://yafgc.net/' + baseUrl = 'https://www.yafgc.net/' + url = baseUrl + '?latest' + stripUrl = baseUrl + 'comic/%s' + firstStripUrl = stripUrl % 'bob-meets-gren' + def __init__(self, name): + super().__init__(name) + self.session.add_throttle('www.yafgc.net', 3.0, 15.5) class YoshSaga(_WPWebcomic): url = 'https://www.yoshsaga.com/'