calibre/recipes/kyivpost_en.recipe
un-pogaz 7e1edf1fbf add scoped noqa 'line too long' (auto-fix)
ruff 'E501' --add-noqa
2025-01-24 11:14:10 +01:00

35 lines
1.4 KiB
Python

#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe
class KyivPost(BasicNewsRecipe):
title = 'Kyiv Post'
__author__ = 'bugmen00t'
description = 'The Kyiv Post is Ukraine\u2019s English-language newspaper. The newspaper\u2019s first print edition came out on Oct. 18, 1995, and went online in 1997. The newspaper\u2019s motto is \u201CUkraine\u2019s Global Voice,\u201D which in 2018 replaced the previous motto of \u201CIndependence. Community. Trust.\u201D Both slogans reflect the newspaper\u2019s commitment to the highest journalistic and ethical standards.' # noqa: E501
publisher = 'BIZNESGRUPP TOV'
category = 'newspaper'
cover_url = u'https://www.kyivpost.com/wp-content/themes/kyivpost/assets/img/svg/logo-foot.svg'
language = 'en_UK'
no_stylesheets = False
remove_javascript = True
auto_cleanup = False
oldest_article = 7
max_articles_per_feed = 20
remove_tags_before = dict(attrs={'class': 'single-article'})
remove_tags_after = dict(attrs={'class': 'post-author-block'})
remove_tags = [
dict(attrs={'class': 'post-label-and-topic'}),
dict(attrs={'class': 'sidebar-start'}),
dict(attrs={'class': 'correction'}),
dict(attrs={'id': 'correction'}),
dict(attrs={'class': 'ad_between_paragraphs'}),
dict(attrs={'id': 'insert-post-by-topic'})
]
feeds = [('News', 'https://www.kyivpost.com/feed')]