| 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 |
|
| 9 |
class WiComix(BasicNewsRecipe): |
| 10 |
title = 'Wicomix' |
| 11 |
__author__ = 'bugmen00t' |
| 12 |
description = '\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e \u043a\u043e\u043c\u0438\u043a\u0441\u044b \u0438 \u043c\u0430\u043d\u0433\u0443 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438.' # noqa: E501 |
| 13 |
publisher = '\u0421\u0435\u0440\u0433\u0435\u0439 \u041e\u0440\u0435\u0448\u043a\u0438\u043d' |
| 14 |
category = 'blog' |
| 15 |
cover_url = 'https://wicomix.files.wordpress.com/2016/03/10865972_581683525300298_6873875730458476144_o.jpg' |
| 16 |
language = 'ru' |
| 17 |
no_stylesheets = False |
| 18 |
remove_javascript = False |
| 19 |
auto_cleanup = False |
| 20 |
oldest_article = 14 |
| 21 |
max_articles_per_feed = 10 |
| 22 |
|
| 23 |
remove_tags_before = dict(name='article') |
| 24 |
|
| 25 |
remove_tags_after = dict(name='article') |
| 26 |
|
| 27 |
remove_tags = [ |
| 28 |
# dict(name='div', attrs={'class': 'author-meta'}), |
| 29 |
dict(name='div', attrs={'id': 'jp-post-flair'}), |
| 30 |
dict(name='footer', attrs={'class': 'entry-meta'}), |
| 31 |
] |
| 32 |
|
| 33 |
feeds = [ |
| 34 |
('\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438', 'https://wicomix.com/feed/') |
| 35 |
# ('\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438', 'https://wicomix.com/comments/feed/') |
| 36 |
] |