# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2013 Bastian Kleineidam from re import compile, escape, IGNORECASE from ..scraper import _BasicScraper from ..util import tagre from ..helpers import indirectStarter class WapsiSquare(_BasicScraper): url = 'http://wapsisquare.com/' rurl = escape(url) stripUrl = url + 'comic/%s' imageSearch = compile(r']+?>Previous') help = 'Index format: stripname' class WastedTalent(_BasicScraper): url = 'http://www.wastedtalent.ca/' stripUrl = url + 'comic/%s' imageSearch = compile(tagre("img", "src", r'(http://www\.wastedtalent\.ca/sites/default/files/imagecache/comic_full/comics/\d+/[^"]+)')) prevSearch = compile(tagre("a", "href", r'(/comic/[^"]+)', after="comic_prev")) help = 'Index format: stripname' class WayfarersMoon(_BasicScraper): url = 'http://www.wayfarersmoon.com/' stripUrl = url + 'index.php?page=%s' imageSearch = compile(r'Previous") help = 'Index format: yyyy/mm/dd' class WhiteNoise(_BasicScraper): baseurl = 'http://www.wncomic.com/' url = baseurl + 'archive.php' stripUrl = baseurl + 'archive_comments.php?strip_id=%s' imageSearch = compile(r'(istrip_files/strips/.+?)"') prevSearch = compile(r'') help = 'Index format: nnn'