mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
33 lines
882 B
Python
33 lines
882 B
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=utf-8
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class BBC(BasicNewsRecipe):
|
|
title = u'BBC Ukrainian'
|
|
description = u'BBC News \u0423\u043A\u0440\u0430\u0457\u043D\u0430'
|
|
__author__ = 'bugmen00t'
|
|
publication_type = 'newspaper'
|
|
oldest_article = 14
|
|
max_articles_per_feed = 50
|
|
language = 'uk'
|
|
cover_url = 'https://news.files.bbci.co.uk/ws/img/logos/og/ukrainian.png'
|
|
auto_cleanup = True
|
|
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\u0438\u043D\u0438 BBC',
|
|
'https://feeds.bbci.co.uk/ukrainian/rss.xml'
|
|
)]
|