summaryrefslogtreecommitdiff
path: root/news.py
diff options
context:
space:
mode:
Diffstat (limited to 'news.py')
-rw-r--r--news.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news.py b/news.py
index 6c486c5..e9afeab 100644
--- a/news.py
+++ b/news.py
@@ -3,7 +3,7 @@ import json
from time import sleep
from settings import news
-apiKey = "17d4d578091e47db9791e84d790391b5"
+apiKey = news["apikey"]
countryCode = news["country"]
url = f"https://newsapi.org/v2/top-headlines?country={countryCode}&apiKey={apiKey}"