Merge pull request #56 from Lugoues/upstream

Added two comics
This commit is contained in:
wummel 2014-01-31 11:27:02 -08:00
commit 2a3a1ceb9d
2 changed files with 24 additions and 0 deletions

12
dosagelib/plugins/o.py Normal file → Executable file
View file

@ -52,6 +52,18 @@ class Oglaf(_BasicScraper):
return cls.url
class OhJoySexToy(_BasicScraper):
url = 'http://www.ohjoysextoy.com/'
rurl = escape(url)
stripUrl = url + '%s/'
firstStripUrl = stripUrl % 'introduction'
imageSearch = compile(tagre("div", "class", r'comicpane') + "\s*.*\s*" + tagre("img", "src", r'(%scomics/[^"]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after='navi navi-prev'))
textSearch = compile(tagre("div", "class", r'comicpane') + "\s*.*\s*" + tagre("img", "alt", r'([^"]+)'))
help = 'Index Format: name'
adult = True
class OkCancel(_BasicScraper):
url = 'http://okcancel.com/'
rurl = escape(url)

12
dosagelib/plugins/t.py Normal file → Executable file
View file

@ -59,6 +59,18 @@ class TheGamerCat(_BasicScraper):
prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/[^"/]+/)' % rurl , after="navi navi-prev"))
help = 'Index format: yyyy/mm/mmddyyyy'
class TheGentlemansArmchair(_BasicScraper):
url = 'http://thegentlemansarmchair.com/'
rurl = escape(url)
stripUrl = url + 'comic/%s'
firstStripUrl = stripUrl % 'dora-the-explorer/'
imageSearch = compile(tagre("div", "id", r'comic') + "\s*.*\s*" + tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/[^"]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after='navi-prev'))
textSearch = compile(r'<h3 class="comic-post-widget-title">(.+)</h3>')
help = 'Index Format: name'
class TheNoob(_BasicScraper):
url = 'http://www.thenoobcomic.com/index.php'
stripUrl = url + '?pos=%s'