Add Fredo And Pidjin

This commit is contained in:
Bastian Kleineidam 2012-09-27 21:55:16 +02:00
parent 3ab526f7d8
commit 86e3aa6c1a

View file

@ -1,6 +1,7 @@
# -*- coding: iso-8859-1 -*- # -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
from re import compile, IGNORECASE, MULTILINE from re import compile, IGNORECASE, MULTILINE
from ..util import tagre
from ..helpers import _BasicScraper, indirectStarter from ..helpers import _BasicScraper, indirectStarter
@ -145,3 +146,12 @@ class FoxTails(_BasicScraper):
imageSearch = compile(r'<img src=(img/.+?)[ |>]', IGNORECASE) imageSearch = compile(r'<img src=(img/.+?)[ |>]', IGNORECASE)
prevSearch = compile(r'(?<=first.gif)*(?<=</td>)*<a.*href=\'(.+?)\'.+?<img.+?src=\'../img/prev.gif\'>', IGNORECASE) prevSearch = compile(r'(?<=first.gif)*(?<=</td>)*<a.*href=\'(.+?)\'.+?<img.+?src=\'../img/prev.gif\'>', IGNORECASE)
help = 'Index format: yyyymmdd' help = 'Index format: yyyymmdd'
class FredoAndPidjin(_BasicScraper):
homepage = 'http://www.pidjin.net/'
help = 'Index format: yyyy/mm/dd/name'
imageSearch = compile(tagre('img', 'src', '(http://cdn\.pidjin\.net/wp-content/uploads/\d\d\d\d/\d\d/\d+[^"]+\.png)'))
prevSearch = compile(tagre('a', 'href', '([^"]+)')+"Prev</a>")
starter = indirectStarter(homepage,
compile(tagre('a', 'href', "("+homepage+r'\d\d\d\d/\d\d/\d\d/[^"]+/)')))