# -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012 Bastian Kleineidam from re import compile, IGNORECASE from ..scraper import _BasicScraper from ..util import tagre 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']+?>Previous') help = 'Index format: strip-name' class WeCanSleepTomorrow(_BasicScraper): url = 'http://wecansleeptomorrow.com/' stripUrl = url + '%s/' imageSearch = compile(tagre("img", "src", r'(http://wecansleeptomorrow\.com/comics/[^"]+)')) prevSearch = compile(tagre("a", "href", r'(http://wecansleeptomorrow\.com/[^"]+)', after="prev")) help = 'Index format: yyyy/mm/dd/stripname' class Wondermark(_BasicScraper): url = 'http://wondermark.com/' stripUrl = url + '%s/' imageSearch = compile(r'') help = 'Index format: nnn'