| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class FootballUA(BasicNewsRecipe): |
| 8 |
title = 'Football.UA' |
| 9 |
__author__ = 'bugmen00t' |
| 10 |
description = ( |
| 11 |
'\u0421\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u0438\u0439 \u043f\u043e\u0440\u0442\u0430\u043b' |
| 12 |
' \u0432 \u0423\u043a\u0440\u0430\u0457\u043d\u0456,' |
| 13 |
' \u043f\u0440\u0438\u0441\u0432\u044f\u0447\u0435\u043d\u0438\u0439 \u043b\u0438\u0448\u0435 \u0444\u0443\u0442\u0431\u043e\u043b\u0443.' |
| 14 |
) |
| 15 |
publisher = 'United Media Holding group' |
| 16 |
category = 'news' |
| 17 |
cover_url = 'https://s.ill.in.ua/i/news/570x380/212/212438.jpg' |
| 18 |
language = 'uk' |
| 19 |
no_stylesheets = False |
| 20 |
remove_javascript = False |
| 21 |
auto_cleanup = False |
| 22 |
remove_empty_feeds = True |
| 23 |
oldest_article = 3 |
| 24 |
max_articles_per_feed = 20 |
| 25 |
|
| 26 |
remove_tags_before = dict(name='article') |
| 27 |
|
| 28 |
remove_tags_after = dict(name='article') |
| 29 |
|
| 30 |
remove_tags = [dict(name='div', attrs={'class': 'bottom-info'}), dict(name='div', attrs={'class': 'social-buttons'})] |
| 31 |
|
| 32 |
feeds = [ |
| 33 |
('\u041d\u043e\u0432\u0438\u043d\u0438', 'https://football.ua/rss2.ashx'), |
| 34 |
] |