Skip to content
New issue

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

Simplify pagination #123

Open
filipeximenes opened this issue Oct 11, 2016 · 0 comments
Open

Simplify pagination #123

filipeximenes opened this issue Oct 11, 2016 · 0 comments

Comments

@filipeximenes
Copy link
Contributor

Pagination currently works this way:

statuses  = api.statuses_user_timeline().get()
for item in statuses().pages():
    print(item.id)

We should be able to do it in a more straightforward and simpler way:

for item in api.statuses_user_timeline().pages():
    print(item.id)
fjsj added a commit to fjsj/tapioca-wrapper that referenced this issue Nov 8, 2016
fjsj added a commit to fjsj/tapioca-wrapper that referenced this issue Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant