| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from __future__ import absolute_import, division, print_function, unicode_literals |
| 5 |
|
| 6 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 7 |
|
| 8 |
__license__ = 'GPL v3' |
| 9 |
__copyright__ = '2012, Darko Miletic <darko.miletic at gmail.com>' |
| 10 |
''' |
| 11 |
www.pravda.ru |
| 12 |
''' |
| 13 |
|
| 14 |
|
| 15 |
class Pravda_ru(BasicNewsRecipe): |
| 16 |
title = '\u041f\u0440\u0430\u0432\u0434\u0430' |
| 17 |
__author__ = 'Darko Miletic (with fixes by bugmen00t)' |
| 18 |
description = 'Правда.Ру: Аналитика и новости' |
| 19 |
publisher = 'PRAVDA.Ru' |
| 20 |
category = 'news, politics, Russia' |
| 21 |
language = 'ru' |
| 22 |
publication_type = 'newspaper' |
| 23 |
cover_url = 'http://www.pravda.ru/pix/logo.gif' |
| 24 |
oldest_article = 7 |
| 25 |
max_articles_per_feed = 50 |
| 26 |
auto_cleanup = True |
| 27 |
|
| 28 |
remove_tags_before = dict(name='div', attrs={'class': 'full article full-article'}) |
| 29 |
|
| 30 |
remove_tags_after = dict(name='div', attrs={'class': 'authors-block'}) |
| 31 |
|
| 32 |
remove_tags = [dict(name='div', attrs={'class': 'breadcumbs'})] |
| 33 |
|
| 34 |
feeds = [ |
| 35 |
('\u041f\u0440\u0430\u0432\u0434\u0430.RU', 'https://www.pravda.ru/export.xml'), |
| 36 |
('\u0421\u0442\u0430\u0442\u044c\u0438', 'https://www.pravda.ru/export-articles.xml'), |
| 37 |
('\u041d\u043e\u0432\u043e\u0441\u0442\u0438', 'https://www.pravda.ru/export-news.xml'), |
| 38 |
] |