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
|
2016-05-21 12:35:53 +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
|
2015-05-26 10:16:55 +00:00
|
|
|
|
|
|
|
|
2022-06-06 10:08:32 +00:00
|
|
|
class Nitrocosm(ParserScraper):
|
2016-05-21 12:35:53 +00:00
|
|
|
imageSearch = '//img[@class="gallery_display"]'
|
|
|
|
prevSearch = '//a[@class="nav_btn_previous"]'
|
|
|
|
|
|
|
|
def __init__(self, name, path):
|
2022-06-06 10:08:32 +00:00
|
|
|
super().__init__(name)
|
2016-05-21 12:35:53 +00:00
|
|
|
self.url = 'http://www.nitrocosm.com/go/' + path
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def getmodules(cls):
|
|
|
|
return [
|
|
|
|
cls('2214', '2214_classic/'),
|
|
|
|
cls('OTE', 'ote/'),
|
|
|
|
cls('ProperBarn', 'gag/'),
|
|
|
|
]
|