Skip to content

How to get all user's details(login, name, location etc) #178

@rakeshcusat

Description

@rakeshcusat

Thanks for providing your library, I really appreciate your good work.
Currently I am using your library to fetch user's details. code snippet is as follow.
gh = Github(login_or_token="rakeshcusat", password=pswd, per_page=100) user_pages = gh.get_users().get_page(0) print_page(user_pages) #This method prints all user details.
This works. it prints 135 user details. But I want to print all user details. I am facing two problems.

  1. I don't know how to get the total number of pages, so I can iteratively pass the page number in get_page() method.
  2. As we know there is rate limit on the API call, I want to know the current remaining limit for API call. API call returns "X-RateLimit-Remaining" value in header but I don't know how to access this value. Is there any interface available to access this value?

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions