mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
36 lines
1.0 KiB
Python
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'
|
|
})
|
|
]
|