From 8f1c864ec3ca7d22fa7812d02444414f2b023fb1 Mon Sep 17 00:00:00 2001 From: Peter B Date: Tue, 17 Jun 2014 01:05:11 -0400 Subject: [PATCH] Added Safely Endangered --- dosagelib/plugins/s.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index 39164dc43..eb6ae31c7 100755 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -28,6 +28,15 @@ class SabrinaOnline(_BasicScraper): archivepages = search.findall(data) return cls.url + archivepages[-1] +class SafelyEndangered(_BasicScraper): + description = u'' + url = 'http://www.safelyendangered.com/' + stripUrl = url + 'comic/%s' + firstStripUrl = stripUrl % 'ignored' + imageSearch = compile(tagre("img", "src", r'(http://www\.safelyendangered\.com/wp-content/uploads/\d+/\d+/[^"]+\.[a-z]+).*')) + prevSearch = compile(tagre("a", "href", r'([^"]+)', after="navi navi-prev")) + textSearch = compile(tagre("img", "title", r'([^"]+)', before=r'http://www\.safelyendangered\.com/wp-content/uploads')) + help = 'Index format: yyyy/mm/stripname' class SailorsunOrg(_BasicScraper): url = 'http://sailorsun.org/'