# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
from re import compile, IGNORECASE
from ..scraper import _BasicScraper
from ..helpers import indirectStarter
class OctopusPie(_BasicScraper):
starter = indirectStarter('http://www.octopuspie.com/2007-05-14/001-pea-wiggle/',
compile(r'latest comic', IGNORECASE))
imageUrl = 'http://www.octopuspie.com/%s'
imageSearch = compile(r']+?href=\'(http://www.octopuspie.com/.+?)\'')
help = 'Index format: yyyy-mm-dd/nnn-strip-name'
class OddFish(_BasicScraper):
latestUrl = 'http://www.odd-fish.net/'
imageUrl = 'http://www.odd-fish.net/viewing.php?&comic_id=%s'
imageSearch = compile(r'')
help = 'Index format: nnn (unpadded)'
class OneQuestion(_BasicScraper):
latestUrl = 'http://onequestioncomic.com/'
imageUrl = 'http://onequestioncomic.com/comics/%s/'
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/'
imageUrl = 'http://gdk.gd-kun.net/%s.html'
imageSearch = compile(r'', IGNORECASE)
starter = indirectStarter('http://www.ok-cancel.com/', prevSearch)
help = 'Index format: yyyymmdd'
class Oglaf(_BasicScraper):
starter = indirectStarter('http://oglaf.com/',
compile(r']+?width="760" height="596"', IGNORECASE)
prevSearch = compile(r']+?>]+?> \<\- ')
help = 'Index format: yyyymmdd'