Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,32 @@ ARTICLE_LIMIT = 5 # Limit to the last 5 articles
|
|
21 |
|
22 |
# News sources
|
23 |
NEWS_SOURCES = {
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
# Initialize cache
|
|
|
21 |
|
22 |
# News sources
|
23 |
NEWS_SOURCES = {
|
24 |
+
"Technology": {
|
25 |
+
"TheNewYorkTimes": "https://rss.nytimes.com/services/xml/rss/nyt/Technology.xml",
|
26 |
+
"reutersagency": "https://www.reutersagency.com/feed/?best-topics=tech&post_type=best"
|
27 |
+
},
|
28 |
+
"Business": {
|
29 |
+
"TheNewYorkTimes": "https://rss.nytimes.com/services/xml/rss/nyt/Business.xml",
|
30 |
+
"reutersagency": "https://www.reutersagency.com/feed/?best-topics=business-finance&post_type=best"
|
31 |
+
},
|
32 |
+
"Science": {
|
33 |
+
"TheNewYorkTimes": "https://rss.nytimes.com/services/xml/rss/nyt/Science.xml"
|
34 |
+
},
|
35 |
+
"World News": {
|
36 |
+
"TheNewYorkTimes": "https://rss.nytimes.com/services/xml/rss/nyt/World.xml",
|
37 |
+
"BBC": "http://feeds.bbci.co.uk/news/world/rss.xml",
|
38 |
+
"CNN": "http://rss.cnn.com/rss/edition_world.rss",
|
39 |
+
"reutersagency": "https://www.reutersagency.com/feed/?taxonomy=best-regions&post_type=best"
|
40 |
+
},
|
41 |
+
"Sports": {
|
42 |
+
"TheNewYorkTimes": "https://rss.nytimes.com/services/xml/rss/nyt/Sports.xml",
|
43 |
+
"reutersagency": "https://www.reutersagency.com/feed/?best-topics=sports&post_type=best"
|
44 |
+
},
|
45 |
+
"Health": {
|
46 |
+
"TheNewYorkTimes": "https://rss.nytimes.com/services/xml/rss/nyt/Health.xml",
|
47 |
+
"politico": "http://rss.politico.com/healthcare.xml",
|
48 |
+
"reutersagency": "https://www.reutersagency.com/feed/?best-topics=health&post_type=best"
|
49 |
+
},
|
50 |
}
|
51 |
|
52 |
# Initialize cache
|