We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The documentation for the Cursor tutorial: http://joshthecoder.github.com/tweepy/docs/cursor_tutorial.html#limits shows:
# Only iterate through the first 200 statuses for status in Cursor(api.user_timeline).limit(200): process_status(status)
however, that throws an exception: AttributeError: 'Cursor' object has no attribute 'limit'
>>> import tweepy >>> api = tweepy.API() >>> statuses = tweepy.Cursor(api.user_timeline).limit(200); Traceback (most recent call last): File "", line 1, in AttributeError: 'Cursor' object has no attribute 'limit'
Without limit, works fine:
>>> statuses = tweepy.Cursor(api.user_timeline, screen_name='ev') >>> status = statuses.items().next() >>> status.text '@xuanthu Saw Super Diamond...where?'
The text was updated successfully, but these errors were encountered:
Sorry that was an error in the tutorial. The actual method would be items(200), not limit(200).
Fixed tutorial in commit d07ecd6
Sorry, something went wrong.
No branches or pull requests
The documentation for the Cursor tutorial:
http://joshthecoder.github.com/tweepy/docs/cursor_tutorial.html#limits
shows:
however, that throws an exception:
AttributeError: 'Cursor' object has no attribute 'limit'
Without limit, works fine:
The text was updated successfully, but these errors were encountered: