from re import compile, IGNORECASE
from ..helpers import _BasicScraper, bounceStarter, indirectStarter
from ..util import getQueryParams
class UnderPower(_BasicScraper):
latestUrl = 'http://underpower.non-essential.com/'
imageUrl = 'http://underpower.non-essential.com/index.php?comic=%s'
imageSearch = compile(r'(?:)?()?'))
imageUrl = 'http://ars.userfriendly.org/cartoons/?id=%s&mode=classic'
imageSearch = compile(r'')
help = 'Index format: yyyymmdd'
@classmethod
def namer(cls, imageUrl, pageUrl):
return 'uf%s' % (getQueryParams(pageUrl)['id'][0][2:],)
class UndeadFriend(_BasicScraper):
latestUrl = 'http://www.undeadfriend.com/'
imageUrl = 'http://www.undeadfriend.com/d/%s.html'
imageSearch = compile(r'src="(http://www\.undeadfriend\.com/comics/.+?)"', IGNORECASE)
prevSearch = compile(r'