From 5b7ab5a711be40453541c0ec886bf309cef12755 Mon Sep 17 00:00:00 2001 From: zac9 Date: Sun, 28 Sep 2014 19:41:29 -0700 Subject: [PATCH] Update o.py --- dosagelib/plugins/o.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dosagelib/plugins/o.py b/dosagelib/plugins/o.py index 6a702744b..01f3a6979 100755 --- a/dosagelib/plugins/o.py +++ b/dosagelib/plugins/o.py @@ -111,6 +111,17 @@ class OneQuestion(_BasicScraper): help = 'Index format: n (unpadded)' +class Optipess(_BasicScraper): + description = u'a word you.d maybe end up with if you combined the two words "optimism" and "pessimism"' + url = 'http://www.optipess.com/' + stripUrl = url + '%s' + firstStripUrl = url + '2008/12/01/jason-friend-of-the-butterflies/' + imageSearch = compile(tagre("img", "src", r'(%scomics/[x|\d]+[^"]+\.[^"]+)' % url)) + prevSearch = compile(tagre("a", "href", r'([^"]+)', after="navi navi-prev")) + textSearch = compile(tagre("img", "alt", r'([^"]+)', before=url)) + help = 'Index format: yyyy/mm/dd/stripname' + + class OrnerBoy(_BasicScraper): url = 'http://www.orneryboy.com/' rurl = escape(url)