dosage/dosagelib/plugins/nitrocosm.py

23 lines
676 B
Python
Raw Normal View History

2015-05-26 10:16:55 +00:00
# -*- coding: utf-8 -*-
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
# Copyright (C) 2015-2016 Tobias Gruetzmacher
from ..scraper import _ParserScraper
2015-05-26 10:16:55 +00:00
2016-05-21 12:35:53 +00:00
class Nitrocosm(_ParserScraper):
imageSearch = '//img[@class="gallery_display"]'
prevSearch = '//a[@class="nav_btn_previous"]'
def __init__(self, name, path):
super(Nitrocosm, self).__init__(name)
self.url = 'http://www.nitrocosm.com/go/' + path
@classmethod
def getmodules(cls):
return [
cls('2214', '2214_classic/'),
cls('OTE', 'ote/'),
cls('ProperBarn', 'gag/'),
]