2020-04-18 11:45:44 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
2016-10-28 22:21:41 +00:00
|
|
|
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
|
2014-01-05 15:50:57 +00:00
|
|
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
2022-06-06 10:08:32 +00:00
|
|
|
# Copyright (C) 2015-2022 Tobias Gruetzmacher
|
|
|
|
from ..scraper import ParserScraper
|
|
|
|
from .common import ComicControlScraper
|
2012-11-26 06:13:32 +00:00
|
|
|
|
2012-11-28 17:15:12 +00:00
|
|
|
|
2022-06-06 10:08:32 +00:00
|
|
|
class NuklearPower(ParserScraper):
|
2016-03-17 22:19:52 +00:00
|
|
|
prevSearch = '//a[@rel="prev"]'
|
|
|
|
imageSearch = '//div[@id="comic"]/img'
|
2012-11-26 06:13:32 +00:00
|
|
|
|
2022-06-06 10:08:32 +00:00
|
|
|
def __init__(self, name, path):
|
|
|
|
super().__init__('NuklearPower/' + name)
|
|
|
|
self.url = 'http://www.nuklearpower.com/' + path + '/'
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def getmodules(cls):
|
|
|
|
return (
|
|
|
|
cls('8BitTheater', '8-bit-theater'),
|
|
|
|
cls('HowIKilledYourMaster', 'hikym'),
|
|
|
|
cls('TheDreadful', 'dreadful'),
|
|
|
|
cls('Warbot', 'warbot'),
|
|
|
|
)
|
|
|
|
|
|
|
|
class NPAtomicRobo(ComicControlScraper):
|
|
|
|
name = 'NuklearPower/AtomicRobo'
|
2016-03-17 22:19:52 +00:00
|
|
|
url = 'http://www.atomic-robo.com/'
|