NEWS_API_KEY="5a4f55173d094177af778ddffea9bd24" | |
pip install python-dotenv | |
import os | |
from dotenv import load_dotenv | |
load_dotenv() | |
api_key = os.getenv("5a4f55173d094177af778ddffea9bd24") | |
articles = fetch_news_articles(api_key, query) | |
NEWS_API_KEY="5a4f55173d094177af778ddffea9bd24" | |
pip install python-dotenv | |
import os | |
from dotenv import load_dotenv | |
load_dotenv() | |
api_key = os.getenv("5a4f55173d094177af778ddffea9bd24") | |
articles = fetch_news_articles(api_key, query) | |