mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Epoch Times
This commit is contained in:
parent
a940bb92f6
commit
56cad44079
@ -22,12 +22,13 @@ class EpochTimes(BasicNewsRecipe):
|
|||||||
.author,.date{font-size: small}
|
.author,.date{font-size: small}
|
||||||
"""
|
"""
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
classes('post_title featured_image pricat_name author date post_content'),
|
classes('post-main'),
|
||||||
]
|
]
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
classes('author_wrapper bottom_row'),
|
classes('print:hidden h-header'),
|
||||||
|
dict(name='button'),
|
||||||
]
|
]
|
||||||
|
#
|
||||||
# feeds can be found at https://www.theepochtimes.com/rssfeeds
|
# feeds can be found at https://www.theepochtimes.com/rssfeeds
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
@ -52,4 +53,6 @@ class EpochTimes(BasicNewsRecipe):
|
|||||||
if title is not None and fi is not None:
|
if title is not None and fi is not None:
|
||||||
title.extract()
|
title.extract()
|
||||||
fi.insert_before(title)
|
fi.insert_before(title)
|
||||||
|
for div in soup.findAll(**classes('post-main'))[1:]:
|
||||||
|
div.extract()
|
||||||
return soup
|
return soup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user