calibre/recipes/dev_ua.recipe
un-pogaz ed2930712d various whitespace (extra-edit)
!partial 'E203,E222,E241,E271,E272'
2025-01-24 11:14:24 +01:00

38 lines
1.8 KiB
Python

#!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
from calibre.web.feeds.news import BasicNewsRecipe
class WiComix(BasicNewsRecipe):
title = 'dev.ua'
__author__ = 'bugmen00t'
publisher = '\u0422\u041E\u0412 \u00AB\u0414\u0435\u0432 \u0423\u043A\u0440\u0430\u0457\u043D\u0430\u00BB'
category = 'news'
cover_url = u'https://jobs.dev.ua/storage/images/34/70/82/79/original/af4c5c155ec48ed68e1c77ca26a8f0b0.jpg'
no_stylesheets = False
remove_javascript = False
auto_cleanup = False
oldest_article = 3
max_articles_per_feed = 30
description = '\u041C\u0435\u0434\u0456\u0430 \u043F\u0440\u043E \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0456\u0457, \u0456\u043D\u043D\u043E\u0432\u0430\u0446\u0456\u0457, \u0432\u0438\u043D\u0430\u0445\u043E\u0434\u0438 \u0432 \u0423\u043A\u0440\u0430\u0457\u043D\u0456 \u0442\u0430 \u0437\u0430 \u0457\u0457 \u043C\u0435\u0436\u0430\u043C\u0438. \u041F\u0440\u043E \u0442\u0435, \u044F\u043A \u0432\u043E\u043D\u0438 \u0432\u043F\u043B\u0438\u0432\u0430\u044E\u0442\u044C \u043D\u0430 \u0436\u0438\u0442\u0442\u044F \u043B\u044E\u0434\u0435\u0439.' # noqa: E501
language = 'uk'
remove_tags_before = dict(name='div', attrs={'class': 'article__header'})
remove_tags_after = dict(name='div', attrs={'class': 'article__body'})
remove_tags = [
dict(name='div', attrs={'class': 'article__reference article__reference_header'}),
dict(name='div', attrs={'class': 'my-lg-5'}),
dict(name='div', attrs={'class': 'video '}),
dict(name='figure', attrs={'class': 'incut'}),
dict(name='figure', attrs={'class': 'global-incut'})
]
feeds = [
('dev.ua', 'https://dev.ua/rss')
]