calibre/recipes/7x7.recipe
Kovid Goyal 29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30

36 lines
1.0 KiB
Python

#!/usr/bin/env python
# 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'
})
]