Open uzabumuhire opened 5 years ago
Hi @uzabumuhire, I need a bit more information.
Just to check: have you created an app on the Twitter Developer Platform?
And from there, did you then copy your credentials (consumer key and secret, oauth token and secret) into the Jupyter Notebook?
Did your app successfully authorize? The first code cell should have printed something like <twitter.api.Twitter object at 0x10f668668>
Hi @mikhailklassen, while I was working on your books example, I had an app on the Twitter Developer Platform and I did copy my credentials (consumer key & secret, oauth token & secret into the Jupyter Notebook.
The first code cell works when I use code from Appendix B section "Example !. Twitter OAuth 1.0a Flow". Otherwise, it does not work and doesn't print something that does look this <twitter.api.Twitter object at 0x10f668668>
I am using Docker to run Jupyter Notebook on Mac OS Mojave 10.14.13. I had an issue with "Chapter 1 - Mining Twitter" section "Retrieving trends" generating the following errors :
The Twitter API attempts to returned HTTP status codes :
Twitter API error messages :
To resolve the issue I changed the authorization section "Authorizing an application to access Twitter account data" with the code from Appendix B section "Example 1. Twitter OAuth 1.0a Flow".