dosage/dosagelib/plugins/nitrocosm.py

26 lines
743 B
Python
Raw Normal View History

2015-05-26 10:16:55 +00:00
# -*- coding: utf-8 -*-
2016-05-21 12:35:53 +00:00
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2016 Tobias Gruetzmacher
2015-05-26 10:16:55 +00:00
2016-05-21 12:35:53 +00:00
from __future__ import absolute_import, division, print_function
2015-05-26 10:16:55 +00:00
2016-05-21 12:35:53 +00:00
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/'),
]