Robert
Robert

Reputation: 11

Getting started with Tweepy 2.1

I am trying this example

import tweepy

public_tweets = tweepy.api.public_timeline()
for tweet in public_tweets:
    print tweet.text

But i am getting this error.

tweepy.error.TweepError: Twitter error response: status code = 301

Any suggestions or places where I can find example projects that use tweepy?

Upvotes: 0

Views: 278

Answers (1)

alko
alko

Reputation: 48317

What tweepy version you use in fact? Run

python -c "import tweepy; print(tweepy.__version__)"

Public timeline is Twitter API 1.0 endpoint, and doesn't exists in Twitter API 1.1.

Removed from tweepy a year ago.

Upvotes: 1

Related Questions