mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
BBC Arabic by logophile777
This commit is contained in:
parent
e7f6669dd6
commit
f9841b2012
18
recipes/bbc_arabic.recipe
Normal file
18
recipes/bbc_arabic.recipe
Normal 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'
|
Loading…
x
Reference in New Issue
Block a user