From f22518cd8cd010efeed8eac917aa0ab2c1349ea9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Jan 2012 16:09:19 +0530 Subject: [PATCH] The Daily News Egypyt and al masry al youm by Omm Mishmishah --- recipes/al_masry_al_youm.recipe | 50 +++++++++++++++++++++++++++++ recipes/the_daily_news_egypt.recipe | 46 ++++++++++++++++++++++++++ src/calibre/utils/localization.py | 1 + 3 files changed, 97 insertions(+) create mode 100644 recipes/al_masry_al_youm.recipe create mode 100644 recipes/the_daily_news_egypt.recipe diff --git a/recipes/al_masry_al_youm.recipe b/recipes/al_masry_al_youm.recipe new file mode 100644 index 0000000000..6ee085e412 --- /dev/null +++ b/recipes/al_masry_al_youm.recipe @@ -0,0 +1,50 @@ +__license__ = 'GPL v3' +__copyright__ = '2011, Pat Stapleton ' +''' +abc.net.au/news +''' +import re +from calibre.web.feeds.recipes import BasicNewsRecipe + +class TheDailyNewsEG(BasicNewsRecipe): + title = u'al-masry al-youm' + __author__ = 'Omm Mishmishah' + description = 'Independent News from Egypt' + masthead_url = 'http://www.almasryalyoum.com/sites/default/files/img/english_logo.png' + cover_url = 'http://www.almasryalyoum.com/sites/default/files/img/english_logo.png' + + auto_cleanup = True + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = False + #delay = 1 + use_embedded_content = False + encoding = 'utf8' + publisher = 'Independent News Egypt' + category = 'News, Egypt, World' + language = 'en_EG' + publication_type = 'newsportal' +# preprocess_regexps = [(re.compile(r'', re.DOTALL), lambda m: '')] +#Remove annoying map links (inline-caption class is also used for some image captions! hence regex to match maps.google) + preprocess_regexps = [(re.compile(r'