From 067dba7c75fb99532f1c4082ed0f7c9c0f4c7acb Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Mon, 19 Aug 2024 23:15:01 -0500 Subject: [PATCH] feat: added Leif and Thorn, A Miracle of Science, and Afterlife Blues --- dosagelib/plugins/a.py | 20 ++++++++++++++++++++ dosagelib/plugins/l.py | 10 ++++++++++ flake.nix | 1 - 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/a.py b/dosagelib/plugins/a.py index fd57d55a6..778c6731f 100644 --- a/dosagelib/plugins/a.py +++ b/dosagelib/plugins/a.py @@ -80,6 +80,16 @@ class AdventuresOfFifne(_ParserScraper): return super(AdventuresOfFifne, self).getPrevUrl(url, data) +class AfterlifeBlues(ParserScraper): + baseUrl = 'https://project-apollo.net/' + url = baseUrl + 'ab/ab213.html' + firstStripUrl = baseUrl + 'mos/ab000.html' + imageSearch = '//img[contains(@src, "manga/")]' + prevSearch = '//a[img/@alt="Previous Page"]' + nextSearch = '//a[img/@alt="Next Page"]' + endOfLife = True + + class AfterStrife(WordPressNavi): baseUrl = 'http://afterstrife.com/' stripUrl = baseUrl + '?p=%s' @@ -252,6 +262,16 @@ class AmbersNoBrainers(_ParserScraper): return self.stripUrl % str(pageNum - 1) +class AMiracleOfScience(ParserScraper): + baseUrl = 'https://project-apollo.net/' + url = baseUrl + 'mos/mos435.html' + firstStripUrl = baseUrl + 'mos/mos000.html' + imageSearch = '//img[contains(@src, "manga/")]' + prevSearch = '//a[img/@alt="Previous Page"]' + nextSearch = '//a[img/@alt="Next Page"]' + endOfLife = True + + class Amya(WordPressScraper): url = 'http://www.amyachronicles.com/' diff --git a/dosagelib/plugins/l.py b/dosagelib/plugins/l.py index f2a536c19..48f124c89 100644 --- a/dosagelib/plugins/l.py +++ b/dosagelib/plugins/l.py @@ -54,6 +54,16 @@ class LeastICouldDo(ParserScraper): help = 'Index format: yyyymmdd' +class LeifAndThorn(ParserScraper): + url = 'https://leifandthorn.com/' + stripUrl = url + 'comic/%s/' + firstStripUrl = stripUrl % 'magical-comic-lyrical-test-post' + imageSearch = '//img[d:class("attachment-full")]' + prevSearch = '//a[d:class("previous-webcomic-link")]' + nextSearch = '//a[d:class("next-webcomic-link")]' + starter = bounceStarter + + class LetsSpeakEnglish(ComicControlScraper): url = 'http://www.marycagle.com' diff --git a/flake.nix b/flake.nix index 674bec1f8..a07f2895f 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,6 @@ { devShells.default = pkgs.mkShell { buildInputs = [ - pkgs.cowsay pkgs.alejandra pkgs.python310Full ];