dosage/dosagelib/plugins/num.py

21 lines
739 B
Python
Raw Normal View History

# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
2014-01-05 15:50:57 +00:00
# Copyright (C) 2012-2014 Bastian Kleineidam
2012-11-21 20:57:26 +00:00
2013-11-12 17:33:14 +00:00
from re import compile, escape
2012-06-20 19:58:13 +00:00
2012-10-11 15:39:38 +00:00
from ..util import tagre
2012-10-11 10:03:12 +00:00
from ..scraper import _BasicScraper
2012-06-20 19:58:13 +00:00
class NineteenNinetySeven(_BasicScraper):
2013-04-14 07:02:14 +00:00
description = u'1977 the Comic - Sex, Drugs and Rock and Roll Just Not in That Order'
2012-06-20 19:58:13 +00:00
name = '1997'
2013-11-12 17:33:14 +00:00
url = 'http://1977thecomic.com/'
rurl = escape(url)
stripUrl = url + '%s/'
firstStripUrl = stripUrl % '1977-comics/from-the-beginning-part-1'
2013-11-12 17:33:14 +00:00
imageSearch = compile(tagre("img", "src", r'(%scomics-1977/[^"]+)' % rurl))
2012-10-11 15:39:38 +00:00
prevSearch = compile(tagre("a", "href", r'([^"]+)')+"Previous")
2012-06-20 19:58:13 +00:00
help = 'Index format: yyyy/mm/dd/strip-name'