Skip to content

Commit

Permalink
Add ExorcismAcademy
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoonfire committed Sep 24, 2023
1 parent 92bdd00 commit d2ac7ad
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion dosagelib/plugins/e.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -214,6 +214,27 @@ 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")]'
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],

Check warning on line 232 in dosagelib/plugins/e.py

View check run for this annotation

Jenkins - Dosage / Flake8

E251

HIGH: unexpected spaces around keyword / parameter equals
month = indexes[1],

Check warning on line 233 in dosagelib/plugins/e.py

View check run for this annotation

Jenkins - Dosage / Flake8

E251

HIGH: unexpected spaces around keyword / parameter equals
day = day)

Check warning on line 234 in dosagelib/plugins/e.py

View check run for this annotation

Jenkins - Dosage / Flake8

E251

HIGH: unexpected spaces around keyword / parameter equals
return name


class ExploitationNow(WordPressNavi):
url = 'http://www.exploitationnow.com/'
firstStripUrl = url + '2000-07-07/9'
Expand Down

0 comments on commit d2ac7ad

Please sign in to comment.