From da9f518a7a737682155bb73814068862eedfbef4 Mon Sep 17 00:00:00 2001 From: Luc Fouin Date: Thu, 27 Feb 2014 17:45:29 +0100 Subject: [PATCH] add french commit M. Le Chien --- dosagelib/plugins/m.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dosagelib/plugins/m.py b/dosagelib/plugins/m.py index 7b84fd9c6..9838cdc0c 100755 --- a/dosagelib/plugins/m.py +++ b/dosagelib/plugins/m.py @@ -128,6 +128,16 @@ class Misfile(_BasicScraper): help = 'Index format: yyyy-mm-dd' +class MonsieurLeChien(_BasicScraper): + description = u'Le blog de Monsieur le Chien, réflexions vaines et assertions sans fondements d\'un contribuable moyen.' + url = 'http://www.monsieur-le-chien.fr/' + stripUrl = url + 'index.php?planche=%s' + firstStripUrl = stripUrl % '2' + imageSearch = compile(tagre("img", "src", r'(i/planches/[^"]+)')) + prevSearch = compile(tagre("a", "href", r'([^"]+)') + tagre("img", "src", "i/precedent.gif")) + help = 'Index format: n' + + class MrLovenstein(_BasicScraper): url = 'http://www.mrlovenstein.com/' rurl = escape(url)