Various Russian news source by bugmen00t

This commit is contained in:
Kovid Goyal 2017-11-19 15:45:03 +05:30
parent 58d94ae2c7
commit 761b2f4aa8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 100 additions and 0 deletions

35
recipes/7x7.recipe Normal file
View File

@ -0,0 +1,35 @@
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1467715002(BasicNewsRecipe):
title = '7x7'
__author__ = 'bugmen00t'
description = '7x7 - межрегиональный интернет-журнал'
publisher = '7x7-journal.ru'
category = 'news'
cover_url = u'https://7x7-journal.ru/public/img/template/logo.png'
language = 'ru'
no_stylesheets = True
remove_javascript = True
auto_cleanup = False
oldest_article = 100
max_articles_per_feed = 100
feeds = [
('7x7', 'https://7x7-journal.ru/newsline/rss'),
]
remove_tags_before = dict(name='article')
remove_tags_after = dict(name='div', attrs={'class': 'article__footer'})
remove_tags = [
dict(name='div', attrs={
'class': 'article__footer'
}),
dict(name='div', attrs={
'class': 'article__tags'
})
]

View File

@ -0,0 +1,39 @@
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1467715002(BasicNewsRecipe):
title = 'Breaking Mad'
__author__ = 'bugmen00t'
description = 'Breaking Mad - пока смерть не насмешит нас. Breakingmad - это агрегатор самых странных и драматичных новостей с жизнеутверждающим эффектом. Breakingmad - это все, что вы должны знать о России и не только.' # noqa
publisher = 'BreakingMad'
category = 'news'
cover_url = u'http://breakingmad.me/images/logo.png'
language = 'ru'
no_stylesheets = False
remove_javascript = True
auto_cleanup = False
oldest_article = 100
max_articles_per_feed = 50
feeds = [
('Общий канал', 'http://breakingmad.me/ru/rss'),
('Страшное', 'http://breakingmad.me/ru/terrible/rss'),
('Смешное', 'http://breakingmad.me/ru/comedy/rss'),
('Странное', 'http://breakingmad.me/ru/weird/rss'),
('Популярное', 'http://breakingmad.me/ru/popular/rss'),
]
remove_tags_before = dict(name='div', attrs={'class': 'news-row'})
remove_tags_after = dict(name='div', attrs={'class': 'news-bottom'})
remove_tags = [
dict(name='div', attrs={
'class': 'news-bottom-center'
}),
dict(name='span', attrs={
'class': 'ico-link news-bottom-link'
})
]

26
recipes/oba.recipe Normal file
View File

@ -0,0 +1,26 @@
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1510778177(BasicNewsRecipe):
title = '\u041e\u0412\u0414-\u0418\u043d\u0444\u043e'
__author__ = 'bugmen00t'
description = 'Независимый правозащитный медиа-проект, посвященный политическим преследованиям в России.'
publisher = 'Ovdinfo.Org'
category = 'news'
cover_url = u'https://ovdinfo.org/sites/all/themes/ovdinfo/img/logo-ovdinfo.png'
language = 'ru'
no_stylesheets = True
remove_javascript = True
auto_cleanup = True
feeds = [
(
'\u041d\u043e\u0432\u043e\u0441\u0442\u0438',
'https://ovdinfo.org/rss.xml'
),
]
remove_tags = [dict(name='a', attrs={'class': 'overtitle'})]