2
Hello. I want to mine twitter data using python. I started doing an initial example, but it’s giving error.
I imported twitter_python to the python lib folder 3.6 via 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 https://uploaddeimagens.com.br/imagens/erro-jpg--521
follows the folder site package:
https://uploaddeimagens.com.br/imagens/estruturas_da_pasta_site_package-jpg
Adds the full error stacktrace instead of a screenshot of the screen.
– Wilker
The error you have identified is that you are missing the requests module.. try gives one :
pip install requests
– Marlysson