mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Acrimed by Gaetan Lehmann
Merge branch 'acrimed' of https://github.com/glehmann/calibre
This commit is contained in:
commit
10d7c6a152
30
recipes/acrimed.recipe
Normal file
30
recipes/acrimed.recipe
Normal file
@ -0,0 +1,30 @@
|
||||
# vim:fileencoding=utf-8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2012'
|
||||
'''
|
||||
acrimed.org
|
||||
'''
|
||||
|
||||
import re
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
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'<title>(.*) - Acrimed \| Action Critique M.*dias</title>'), lambda m: '<title>' + m.group(1) + '</title>'),
|
||||
(re.compile(r'<h2>(.*) - Acrimed \| Action Critique M.*dias</h2>'), lambda m: '<h2>' + m.group(1) + '</h2>')]
|
||||
|
||||
extra_css = """
|
||||
.chapo{font-style:italic; margin: 1em 0 0.5em}
|
||||
"""
|
BIN
recipes/icons/acrimed.png
Normal file
BIN
recipes/icons/acrimed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 709 B |
Loading…
x
Reference in New Issue
Block a user