BBC Arabic by logophile777

This commit is contained in:
Kovid Goyal 2014-08-14 13:58:38 +05:30
parent e7f6669dd6
commit f9841b2012

18
recipes/bbc_arabic.recipe Normal file
View File

@ -0,0 +1,18 @@
from calibre.web.feeds.news import BasicNewsRecipe
class BBCArabic(BasicNewsRecipe):
title = u'BBC Arabic Middle East'
oldest_article = 7
max_articles_per_feed = 100
extra_css = 'body { text-align: right; direction:rtl; } '
auto_cleanup = True
language = 'ar'
__author__ = 'logophile777'
remove_tags = [
{'class':['emp-alt-handheld', 'emp-noflash', 'emp-flashlink', 'emp-alt-screen']}
]
feeds = [(u'BBC Arabic Middle East', u'http://www.bbc.co.uk/arabic/middleeast/index.xml')]
def print_version(self, url):
return url + '?print=1'