diff --git a/dosagelib/plugins/p.py b/dosagelib/plugins/p.py index 0951b5236..73032277b 100755 --- a/dosagelib/plugins/p.py +++ b/dosagelib/plugins/p.py @@ -3,7 +3,7 @@ # Copyright (C) 2012-2014 Bastian Kleineidam from re import compile, escape -from ..scraper import _BasicScraper +from ..scraper import _BasicScraper, _ParserScraper from ..helpers import bounceStarter, queryNamer, indirectStarter from ..util import tagre @@ -235,6 +235,15 @@ class Precocious(_BasicScraper): help = 'Index format: yyyy/mm/dd' +class PS238(_ParserScraper): + url = 'http://ps238.nodwick.com/' + stripUrl = url + '/comic/%s/' + starter = bounceStarter(url, '//a[@class="comic-nav-base comic-nav-next"]') + imageSearch = '//div[@id="comic"]//img' + prevSearch = '//a[@class="comic-nav-base comic-nav-previous"]' + help = 'Index format: yyyy-mm-dd' + + class ProperBarn(_BasicScraper): url = 'http://www.nitrocosm.com/go/gag/' stripUrl = url + '%s/'