dosage/dosagelib/plugins/o.py

88 lines
3.4 KiB
Python
Raw Normal View History

# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
2012-06-20 19:58:13 +00:00
from re import compile, IGNORECASE
2012-10-11 10:03:12 +00:00
from ..scraper import _BasicScraper
from ..helpers import indirectStarter
2012-06-20 19:58:13 +00:00
class OctopusPie(_BasicScraper):
starter = indirectStarter('http://www.octopuspie.com/2007-05-14/001-pea-wiggle/',
compile(r'<a href="(http://www.octopuspie.com/.+?)"><b>latest comic</b>', IGNORECASE))
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.octopuspie.com/%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img src="(http://www.octopuspie.com/strippy/.+?)"')
prevSearch = compile(r'<link rel=\'prev\'[^>]+?href=\'(http://www.octopuspie.com/.+?)\'')
help = 'Index format: yyyy-mm-dd/nnn-strip-name'
class OddFish(_BasicScraper):
latestUrl = 'http://www.odd-fish.net/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.odd-fish.net/viewing.php?&comic_id=%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img src="(images/\d{1,4}.\w{3,4})" ')
prevSearch = compile(r'<a href="(.+?)"><img src="http://www.odd-fishing.net/i/older.gif" ')
help = 'Index format: n (unpadded)'
class OhMyGods(_BasicScraper):
latestUrl = 'http://ohmygods.co.uk/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://ohmygods.co.uk/strips/%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<p class="omgs-strip"><img src="(/system/files/.+?)"')
prevSearch = compile(r'<li class="custom_pager_prev"><a href="(/strips/.+?)"')
help = 'Index format: yyyy-mm-dd'
class OnTheEdge(_BasicScraper):
latestUrl = 'http://www.ontheedgecomics.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://ontheedgecomics.com/comic/ote%s'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img src="(http://ontheedgecomics.com/comics/.+?)"')
prevSearch = compile(r'<a href="([^"]+)" rel="prev">')
help = 'Index format: nnn (unpadded)'
class OneQuestion(_BasicScraper):
latestUrl = 'http://onequestioncomic.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://onequestioncomic.com/comics/%s/'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'(istrip_files.+?)"')
prevSearch = compile(r'First.+?"(comic.php.+?)".+?previous.png')
help = 'Index format: n (unpadded)'
class OurHomePlanet(_BasicScraper):
latestUrl = 'http://gdk.gd-kun.net/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://gdk.gd-kun.net/%s.html'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img src="(pages/comic.+?)"')
prevSearch = compile(r'coords="50,18,95,65".+?href="(.+?\.html)".+?alt=')
help = 'Index format: n (unpadded)'
class OkCancel(_BasicScraper):
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.ok-cancel.com/comic/%s.html'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'src="(http://www.ok-cancel.com/strips/okcancel\d{8}.gif)"', IGNORECASE)
prevSearch = compile(r'<div class="previous"><a href="(http://www.ok-cancel.com/comic/\d{1,4}.html)">', IGNORECASE)
starter = indirectStarter('http://www.ok-cancel.com/', prevSearch)
help = 'Index format: yyyymmdd'
class Oglaf(_BasicScraper):
starter = indirectStarter('http://oglaf.com/',
compile(r'<a href="(.+?)"><img src="over18.gif"', IGNORECASE))
2012-11-13 18:10:19 +00:00
stripUrl = 'http://oglaf.com/%s.html'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'/><img src="(.+?)"[^>]+?width="760" height="596"', IGNORECASE)
prevSearch = compile(r'<a href="(.+?)"[^>]+?><img src="prev.gif"', IGNORECASE)
help = 'Index format: nn'
class OverCompensating(_BasicScraper):
latestUrl = 'http://www.overcompensating.com/'
2012-11-13 18:10:19 +00:00
stripUrl = 'http://www.overcompensating.com/posts/%s.html'
2012-06-20 19:58:13 +00:00
imageSearch = compile(r'<img src="(/comics/.+?)"')
prevSearch = compile(r'"><a href="(.+?)"[^>]+?>&nbsp;\<\- &nbsp;</a>')
help = 'Index format: yyyymmdd'