Skip to content

Unsure how to use PaginatedList #216

@cwarren-mw

Description

@cwarren-mw

Going by the documentation, I thought this would print out a list of all my repositories:

cnt = 0
for repo in g.get_user("manifoldsquid").get_repos():
    cnt += 1
    print(str(cnt) + " :" + repo.name)

But it only prints the names of the first 30 repos. (I created 33 for this account.) I can set g.per_page to 100 and get all the repos printed, but I was wondering what the right way to do this was -- if i had more than 100 repos, I'd be back in the same situation.

Thanks, and apologies if this is a dumb question; I'm new to this.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions