-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
foxnews.recipe
51 lines (43 loc) · 1.71 KB
/
foxnews.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
__license__ = 'GPL v3'
__copyright__ = '2010-2011, Darko Miletic <darko.miletic at gmail.com>'
'''
foxnews.com
'''
from calibre.web.feeds.news import BasicNewsRecipe
class FoxNews(BasicNewsRecipe):
title = 'FOX News'
__author__ = 'Darko Miletic'
description = 'Breaking News from FOX'
publisher = 'FOXNews.com'
category = 'news, breaking news, latest news, current news, world news, national news, USA'
oldest_article = 2
max_articles_per_feed = 200
no_stylesheets = True
encoding = 'utf8'
use_embedded_content = False
language = 'en'
publication_type = 'newsportal'
remove_empty_feeds = True
extra_css = """
body{font-family: Arial,sans-serif }
.caption{font-size: x-small}
.author,.dateline{font-size: small}
"""
conversion_options = {
'comment': description, 'tags': category, 'publisher': publisher, 'language': language
}
remove_attributes = ['xmlns', 'lang']
keep_only_tags = [
dict(name='h1'),
dict(attrs={'class':'article-info article-body'.split()}),
]
feeds = [
(u'Latest Headlines', u'http://feeds.foxnews.com/foxnews/latest'),
(u'National', u'http://feeds.foxnews.com/foxnews/national'),
(u'World', u'http://feeds.foxnews.com/foxnews/world'),
(u'Politics', u'http://feeds.foxnews.com/foxnews/politics'),
(u'Business', u'http://feeds.foxnews.com/foxnews/business'),
(u'SciTech', u'http://feeds.foxnews.com/foxnews/scitech'),
(u'Health', u'http://feeds.foxnews.com/foxnews/health'),
(u'Entertainment', u'http://feeds.foxnews.com/foxnews/entertainment')
]