mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Create rt.recipe
This commit is contained in:
parent
af7f37453a
commit
bff3db73dc
24
recipes/rt.recipe
Normal file
24
recipes/rt.recipe
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# vim:fileencoding=utf-8
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class RtRecipe(BasicNewsRecipe):
|
||||||
|
title = 'RT на русском'
|
||||||
|
__author__ = 'Vuizur'
|
||||||
|
oldest_article = 7
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
auto_cleanup = False
|
||||||
|
language = 'ru'
|
||||||
|
|
||||||
|
remove_tags_before = dict(name='h1')
|
||||||
|
remove_tags_after = dict(name='a', attrs={'class':'tags-trends__link'})
|
||||||
|
remove_tags = [
|
||||||
|
dict(name='div', attrs={'class':'error-on-page'}),
|
||||||
|
dict(name='div', attrs={'class':'short-url'}),
|
||||||
|
dict(name='div', attrs={'class':'follows-channel'}),
|
||||||
|
dict(name='a', attrs={'class':'tags-trends__link'})
|
||||||
|
]
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
('RT на русском', 'https://russian.rt.com/rss'),
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user