dosage/dosagelib/plugins/nitrocosm.py

18 lines
455 B
Python
Raw Normal View History

2015-05-26 10:16:55 +00:00
# -*- coding: utf-8 -*-
from ..scraper import make_scraper, _ParserScraper
def add(name, relativeUrl):
attrs = dict(
name=name,
url='http://www.nitrocosm.com/go/' + relativeUrl,
imageSearch='//img[@class="gallery_display"]',
prevSearch='//a[@class="nav_btn_previous"]'
)
globals()[name] = make_scraper(name, _ParserScraper, **attrs)
add('2214', '2214_classic/')
add('OTE', 'ote/')
add('ProperBarn', 'gag/')