From 809796f3d16db471257bbea7f69b3fcaeb9d87c9 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Sun, 24 Sep 2023 00:29:30 -0500 Subject: [PATCH] Add ExorcismAcademy --- dosagelib/plugins/e.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/e.py b/dosagelib/plugins/e.py index d423528dd..d4ca493df 100644 --- a/dosagelib/plugins/e.py +++ b/dosagelib/plugins/e.py @@ -4,7 +4,7 @@ # SPDX-FileCopyrightText: © 2015 Tobias Gruetzmacher # SPDX-FileCopyrightText: © 2019 Daniel Ring import os -from re import compile, IGNORECASE +from re import compile, sub, IGNORECASE from ..helpers import bounceStarter, indirectStarter from ..scraper import ParserScraper, _BasicScraper, _ParserScraper @@ -214,6 +214,28 @@ class Evon(WordPressScraper): adult = True +class ExorcismAcademy(ParserScraper): + url = 'https://ea.asmodrawscomics.com/' + stripUrl = url + 'comic/%s/' + firstStripUrl = stripUrl % 'title-page' + imageSearch = '//div[contains(@class, "webcomic-image")]//img[contains(@class, "size-full")]' + prevSearch = '//a[contains(@class, "previous-webcomic-link")]' + multipleImagesPerStrip = True + adult = True + + def namer(self, image_url, page_url): + def repl(m): + return "{0}-{1}".format(m.group(2).zfill(4), m.group(1)) + + indexes = tuple(image_url.rstrip('/').split('/')[-3:]) + day = sub(r'^(.+?)-?(?:Pg-(\d+))', repl, indexes[2]) + name = "{year}-{month}-{day}".format( + year = indexes[0], + month = indexes[1], + day = day) + return name + + class ExploitationNow(WordPressNavi): url = 'http://www.exploitationnow.com/' firstStripUrl = url + '2000-07-07/9'