Add DocRat
This commit is contained in:
parent
0d8a803913
commit
05854b6ddf
1 changed files with 15 additions and 0 deletions
|
@ -163,6 +163,21 @@ class Dilbert(_ParserScraper):
|
|||
return "%s" % name
|
||||
|
||||
|
||||
class DocRat(_ParserScraper):
|
||||
url = 'http://www.docrat.com.au/'
|
||||
stripUrl = url + 'comic/%s/'
|
||||
firstStripUrl = stripUrl % 'begin-with-eye-contact'
|
||||
imageSearch = '//div[@class="webcomic-image"]//img'
|
||||
prevSearch = '//a[contains(@class, "previous-webcomic-link")]'
|
||||
|
||||
def namer(self, imageUrl, pageUrl):
|
||||
# Fix inconsistent filenames
|
||||
filename = imageUrl.rsplit('/', 1)[-1].rsplit('?', 1)[0]
|
||||
filename = filename.replace('2006-08-01', 'DR0027')
|
||||
filename = filename.replace('2006-07-31', 'DR0026')
|
||||
return filename
|
||||
|
||||
|
||||
class DoemainOfOurOwn(_ParserScraper):
|
||||
url = 'http://www.doemain.com/'
|
||||
stripUrl = url + 'index.cgi/%s'
|
||||
|
|
Loading…
Reference in a new issue