mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Update CNN
This commit is contained in:
parent
8c44238e8c
commit
60ee26e18d
@ -22,6 +22,8 @@ class CNN(BasicNewsRecipe):
|
|||||||
# recursions = 1
|
# recursions = 1
|
||||||
# match_regexps = [r'http://sportsillustrated.cnn.com/.*/[1-9].html']
|
# match_regexps = [r'http://sportsillustrated.cnn.com/.*/[1-9].html']
|
||||||
max_articles_per_feed = 25
|
max_articles_per_feed = 25
|
||||||
|
compress_news_images = True
|
||||||
|
compress_news_images_auto_size = 8
|
||||||
|
|
||||||
extra_css = '''
|
extra_css = '''
|
||||||
h1 {font-size:xx-large; font-family:Arial,Helvetica,sans-serif;}
|
h1 {font-size:xx-large; font-family:Arial,Helvetica,sans-serif;}
|
||||||
@ -41,7 +43,11 @@ class CNN(BasicNewsRecipe):
|
|||||||
dict(id=['body-text', 'storycontent']),
|
dict(id=['body-text', 'storycontent']),
|
||||||
dict(attrs={'class':['pg-headline', 'metadata']}),
|
dict(attrs={'class':['pg-headline', 'metadata']}),
|
||||||
]
|
]
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
|
dict(attrs={'class':lambda x: x and bool({
|
||||||
|
'video__end-slate', 'owl-filmstrip', 'el-embed-instagram',
|
||||||
|
}.intersection(set(x.split())))}),
|
||||||
]
|
]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user