Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ signs = [
|
|
| 11 |
|
| 12 |
def get_trending_news():
|
| 13 |
"""Fetch and return trending news headlines."""
|
| 14 |
-
url = "http://newsapi.org/v2/top-headlines?country=us&apiKey=
|
| 15 |
try:
|
| 16 |
page = requests.get(url).json()
|
| 17 |
articles = page["articles"]
|
|
|
|
| 11 |
|
| 12 |
def get_trending_news():
|
| 13 |
"""Fetch and return trending news headlines."""
|
| 14 |
+
url = "http://newsapi.org/v2/top-headlines?country=us&apiKey=" + NewsAppToken
|
| 15 |
try:
|
| 16 |
page = requests.get(url).json()
|
| 17 |
articles = page["articles"]
|