Update MSConceptGraph.ipynb
This commit is contained in:
parent
c993c02eb3
commit
d86d989a7d
|
|
@ -78,7 +78,7 @@
|
|||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"Let's try to categorize the news titles using parent concepts. To get news titles, we will use [NewsApi.org](http://newsapi.org) service. You need to obtain your own API key in order to use the service."
|
||||
"Let's try to categorize the news titles using parent concepts. To get news titles, we will use [NewsApi.org](http://newsapi.org) service. You need to obtain your own API key in order to use the service - go to the web site and register for free developer plan."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"newsapi_key = '7015bc6ae10841679b21676c05bdad97'\n",
|
||||
"newsapi_key = '<your API key here>'\n",
|
||||
"def get_news(country='us'):\n",
|
||||
" res = json.loads(http(\"https://newsapi.org/v2/top-headlines?country={0}&apiKey={1}\".format(country,newsapi_key)))\n",
|
||||
" return res['articles']\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue