mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-10-24 23:38:55 -04:00
33 lines
915 B
Python
33 lines
915 B
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=utf-8
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class BBC(BasicNewsRecipe):
|
|
title = u'BBC Russian'
|
|
description = u'\u0420\u0443\u0441\u0441\u043A\u0430\u044F \u0441\u043B\u0443\u0436\u0431\u0430 BBC'
|
|
__author__ = 'bugmen00t'
|
|
publication_type = 'newspaper'
|
|
oldest_article = 14
|
|
max_articles_per_feed = 50
|
|
language = 'ru'
|
|
cover_url = 'https://news.files.bbci.co.uk/ws/img/logos/og/russian.png'
|
|
auto_cleanup = False
|
|
no_stylesheets = True
|
|
|
|
remove_tags_before = dict(name='h1')
|
|
|
|
remove_tags_after = dict(name='main', attrs={'aria-hidden': 'true'})
|
|
|
|
remove_tags = [
|
|
dict(name='section', attrs={'role': 'region'}),
|
|
dict(name='footer'),
|
|
dict(name='aside')
|
|
]
|
|
|
|
feeds = [(
|
|
u'\u041D\u043E\u0432\u043E\u0441\u0442\u0438 BBC',
|
|
'https://feeds.bbci.co.uk/russian/rss.xml'
|
|
)]
|