From 477767f2ce3d68528f0aee600af7f18a5a14faac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gae=CC=88tan=20Lehmann?= Date: Thu, 11 Jul 2013 15:53:27 +0200 Subject: [PATCH] add acrimed.org recipe --- recipes/acrimed.recipe | 24 ++++++++++++++++++++++++ recipes/icons/acrimed.png | Bin 0 -> 709 bytes 2 files changed, 24 insertions(+) create mode 100644 recipes/acrimed.recipe create mode 100644 recipes/icons/acrimed.png diff --git a/recipes/acrimed.recipe b/recipes/acrimed.recipe new file mode 100644 index 0000000000..66e3e732bb --- /dev/null +++ b/recipes/acrimed.recipe @@ -0,0 +1,24 @@ +__license__ = 'GPL v3' +__copyright__ = '2012' +''' +acrimed.org +''' + +class Acrimed(BasicNewsRecipe): + title = u'Acrimed' + __author__ = 'Gaƫtan Lehmann' + oldest_article = 30 + max_articles_per_feed = 100 + auto_cleanup = True + auto_cleanup_keep = '//div[@class="crayon article-chapo-4112 chapo"]' + language = 'fr' + masthead_url = 'http://www.acrimed.org/IMG/siteon0.gif' + feeds = [(u'Acrimed', u'http://www.acrimed.org/spip.php?page=backend')] + + preprocess_regexps = [ + (re.compile(r'(.*) - Acrimed \| Action Critique M.*dias'), lambda m: '' + m.group(1) + ''), + (re.compile(r'

(.*) - Acrimed \| Action Critique M.*dias

'), lambda m: '

' + m.group(1) + '

')] + + extra_css = """ + .chapo{font-style:italic; margin: 1em 0 0.5em} + """ diff --git a/recipes/icons/acrimed.png b/recipes/icons/acrimed.png new file mode 100644 index 0000000000000000000000000000000000000000..b88f368d3ca856f4b1efc14a62323bb1a82264b0 GIT binary patch literal 709 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLl<6e(pbstU$g(vPY0F z14ES>14Ba#1H&(%P{RubhEf9thF1v;3|2E37{m+a>nyLa#5=H?a<6x7qxGd4Cpefo5Gc=&?{4}f0L)zwW* zOtiDJQ&Li@tE-zmd-lhVA0;Ft;^PyFi;E{toOtBOk<`@G#KffX^75ZQe+C5jZ```*1afYAx;TbNT=qTpGVG8859@=M0tr!G%}lObH-gwwg)bPT zin4}>ggp3rzjZ_9p8b>Ft2~c6W+K;EpLj7M<_+6j519i#MR|(tS8i5T@y}c{clQbF z*8S5LwYj~#bo2-3o=wlg|C9tB>kBv=6MKDup0w|+AQs){%kDA;nrx1J5yV*bdS=KI zz4o#T!HSOc3tZS4t`?ZgyCdu)KV<<^|GS)jU;a1=?AiCw+Cg#Sj|q9EOgwhI>s34d z{eApme+gq4fA30;uvz-kYuKl3)oJH3e|v$8??TYLB(uX4e&sVxeJRdam;1~O=t*k Wacl6}cIZ7&1B0ilpUXO@geCyLCONwR literal 0 HcmV?d00001