Data Science : Creating a news reader Python
Go to newsapi website and get url for any news channel .
To code in python you need to add dependency for this run below command
pip install newsapi-python
and here is the code
import urllib.request as urlr
import json
r=urlr.urlopen("http://newsapi.org/v2/top-headlines?sources=the-times-of-india&apiKey=460981db9cf744c08c14a5fc295431ac")
a=json.loads(r.read().decode());
for i in range(0,5):
print(a['articles'][0]['title'])
input()
ReplyDeleteI am impressed by the way of writing your blog and topics which you covered. I read all your post which is useful and informative.
Data Science Course in Anna nagar
Data Science Training in Anna nagar
Data science course in chennai
Devops Training in Anna nagar
Digital Marketing Course in anna nagar
Java Training in Anna nagar
RPA Training in Anna nagar
Blue Prism Training in Anna nagar