twitter data with python

1

Hello. I want to mine twitter data using python. I started by making an initial example, but it is giving error.

I imported twitter_python into the python 3.6 lib folder through the setupe.py install command at the windows prompt. The code:

import twitter  
api=twitter.Api()  

statuses=api.GetPublicTimeline()  

print(s.user.name for s in statuses)  

Follow the error link

follow the folder site package:
link

    
asked by anonymous 27.08.2017 / 20:01

1 answer

0

In this case, the error occurs because you are making a request without having the library requests installed, if you use python3, enter this command in the terminal:

sudo pip3 install requests
    
29.08.2017 / 02:01