rtik007 commited on
Commit
f053fcf
·
verified ·
1 Parent(s): 33dea51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=a37ab6843a934a16aea7f8bbeb83cd96"
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"]