How do I start using Tweepy? I keep getting the 403 error.
-
I am trying to develop a Twitter app using Python 2.7. I have absolutely no experience with Twitter development, and thus I've been trying to use online tutorials and resources to learn. I heard that Tweepy was really good, and so I downloaded Tweepy for Python 2.7 from https://pypi.python.org/pypi/tweepy/1.8 and I've been trying to use the tutorial on https://code.google.com/p/tweepy/wiki/GettingStarted. However, when I type in... import tweepy public_tweets = tweepy.api.public_timeline() for tweet in public_tweets: print tweet.text ...into a new Python file, I get an error: Traceback (most recent call last): File "C:/Users/Me/Desktop/http://HelloWorld.py", line 3, in <module> public_tweets = tweepy.api.public_timeline() File "C:/Users/Me/Desktop\tweepy\bhttp://inder.py", line 185, in _call return method.execute() File "C:/Users/Me/Desktop\tweepy\bhttp://inder.py", line 168, in execute raise TweepError(error_msg, resp) TweepError: Twitter error response: status code = 403 From what I looked up, error 403 is "Forbidden." I don't really know what that means or how to fix that. Could someone please help me? I would really appreciate it!
-
Answer:
I think a format like Stackoverflow would be more appropriate for questions like these. But I shall answer this question anyways as I faced the same problem. Apparently the public timeline feature in Tweepy has been broken since quite some time. You can find out more about that in the comments on the page you linked to: https://code.google.com/p/tweepy/wiki/GettingStarted Otherwise, I have been success in using Tweepy for posting status updates after OAuth login steps.
Gaurav Trivedi at Quora Visit the source
Related Q & A:
- Why do I keep getting back email that I sent failure?Best solution by Yahoo! Answers
- Why do I keep getting an error message when I use Yahoo?Best solution by Yahoo! Answers
- Why I keep getting an error messenger when i try to down load yahoo messenger though?Best solution by Yahoo! Answers
- Why do I keep getting communication error in chat?Best solution by Yahoo! Answers
- Why do I keep getting this error message on my computer?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.