dosage/dosagelib/plugins/y.py

27 lines
1,003 B
Python
Raw Normal View History

# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
2012-11-21 21:57:26 +01:00
# Copyright (C) 2012 Bastian Kleineidam
from re import compile
2012-10-11 12:03:12 +02:00
from ..scraper import _BasicScraper
2012-11-26 07:13:32 +01:00
from ..util import tagre
2012-06-20 21:58:13 +02:00
class YAFGC(_BasicScraper):
2012-11-26 07:13:32 +01:00
latestUrl = 'http://yafgc.net/'
stripUrl = latestUrl + '?id=%s'
imageSearch = compile(tagre("img", "src", r'(http://yafgc\.net/img/comic/\d+\.jpg)'))
prevSearch = compile(tagre("a", "href", r'(http://yafgc\.net/\?id=\d+)') +
tagre("img", "src", r'/img/navbar/go_to_previous\.gif'))
2012-06-20 21:58:13 +02:00
help = 'Index format: n'
class YouSayItFirst(_BasicScraper):
latestUrl = 'http://www.yousayitfirst.com/'
2012-11-26 07:13:32 +01:00
stripUrl = latestUrl + 'comics/index.php?date=%s'
2012-12-04 07:02:40 +01:00
imageSearch = compile(tagre("img", "src", r"(http://www\.yousayitfirst\.com/comics/[^>']+)", quote="'?"))
prevSearch = compile(tagre("a", "href", r'(http://www\.yousayitfirst\.com/comics/index\.php\?date=\d+)', quote="'") + "Previous")
2012-06-20 21:58:13 +02:00
help = 'Index format: yyyymmdd'