# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2013 Bastian Kleineidam from re import compile, IGNORECASE from ..scraper import _BasicScraper from ..util import tagre from ..helpers import indirectStarter class WapsiSquare(_BasicScraper): url = 'http://wapsisquare.com/' 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): url = 'http://www.wncomic.com/archive.php' stripUrl = 'http://www.wncomic.com/archive_comments.php?strip_id=%s' imageSearch = compile(r'(istrip_files/strips/.+?)"') prevSearch = compile(r'') help = 'Index format: nnn'