mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
fix kyiv post recipe fiters
This commit is contained in:
parent
503d0e0113
commit
7d08dc4955
@ -16,14 +16,19 @@ class KyivPost(BasicNewsRecipe):
|
|||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
auto_cleanup = False
|
auto_cleanup = False
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 10
|
max_articles_per_feed = 20
|
||||||
|
|
||||||
remove_tags_before = dict(name='article', attrs={'class': 'article'})
|
remove_tags_before = dict(attrs={'class': 'single-article'})
|
||||||
|
|
||||||
remove_tags_after = dict(name='article', attrs={'class': 'article'})
|
remove_tags_after = dict(attrs={'class': 'post-author-block'})
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='div', attrs={'class': 'entry-footer hide_post_header'})
|
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 = [(
|
feeds = [(
|
||||||
|
@ -16,14 +16,19 @@ class KyivPost(BasicNewsRecipe):
|
|||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
auto_cleanup = False
|
auto_cleanup = False
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 10
|
max_articles_per_feed = 20
|
||||||
|
|
||||||
remove_tags_before = dict(name='article', attrs={'class': 'article'})
|
remove_tags_before = dict(attrs={'class': 'single-article'})
|
||||||
|
|
||||||
remove_tags_after = dict(name='article', attrs={'class': 'article'})
|
remove_tags_after = dict(attrs={'class': 'post-author-block'})
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='div', attrs={'class': 'entry-footer hide_post_header'})
|
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')]
|
feeds = [('News', 'https://www.kyivpost.com/feed')]
|
||||||
|
@ -16,14 +16,19 @@ class KyivPost(BasicNewsRecipe):
|
|||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
auto_cleanup = False
|
auto_cleanup = False
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 10
|
max_articles_per_feed = 20
|
||||||
|
|
||||||
remove_tags_before = dict(name='article', attrs={'class': 'article'})
|
remove_tags_before = dict(attrs={'class': 'single-article'})
|
||||||
|
|
||||||
remove_tags_after = dict(name='article', attrs={'class': 'article'})
|
remove_tags_after = dict(attrs={'class': 'post-author-block'})
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='div', attrs={'class': 'entry-footer hide_post_header'})
|
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 = [
|
feeds = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user