calibre/recipes/bbc_arabic.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

22 lines
631 B
Plaintext

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'