# -*- coding: utf-8 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam # Copyright (C) 2015-2016 Tobias Gruetzmacher from __future__ import absolute_import, division, print_function from re import compile, escape from ..scraper import _BasicScraper from ..helpers import indirectStarter from ..util import tagre class Underling(_BasicScraper): url = 'http://underlingcomic.com/' stripUrl = url rurl = escape(url) firstStripUrl = stripUrl + 'page-one/' imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]*)' % rurl)) prevSearch = compile(tagre("a", "href", r'([^"]+)', after=r'class="[^"]*navi-prev')) help = 'Index format: nnn' class Undertow(_BasicScraper): url = 'http://undertow.dreamshards.org/' stripUrl = url + '%s' imageSearch = compile(tagre("img", "src", r'([^"]+\.jpg)')) prevSearch = compile(r'href="(.+?)".+?teynpoint') help = 'Index format: good luck !' starter = indirectStarter(url, compile(r'href="(.+?)".+?Most recent page')) class UnicornJelly(_BasicScraper): baseUrl = 'http://unicornjelly.com/' url = baseUrl + 'uni666.html' stripUrl = baseUrl + 'uni%s.html' firstStripUrl = stripUrl % '001' imageSearch = compile(r'(?:)?()?