diff --git a/dosagelib/plugins/f.py b/dosagelib/plugins/f.py index 6a4249a26..f66d3b1fb 100644 --- a/dosagelib/plugins/f.py +++ b/dosagelib/plugins/f.py @@ -1,6 +1,7 @@ # -*- coding: iso-8859-1 -*- # Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs from re import compile, IGNORECASE, MULTILINE +from ..util import tagre from ..helpers import _BasicScraper, indirectStarter @@ -145,3 +146,12 @@ class FoxTails(_BasicScraper): imageSearch = compile(r']', IGNORECASE) prevSearch = compile(r'(?<=first.gif)*(?<=)*', IGNORECASE) 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") + starter = indirectStarter(homepage, + compile(tagre('a', 'href', "("+homepage+r'\d\d\d\d/\d\d/\d\d/[^"]+/)')))