Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nasirovx/api-github
This script uses the requests library to send a GET request to the GitHub API, searching for users based on their location.
https://github.com/nasirovx/api-github
api api-github github python
Last synced: 2 days ago
JSON representation
This script uses the requests library to send a GET request to the GitHub API, searching for users based on their location.
- Host: GitHub
- URL: https://github.com/nasirovx/api-github
- Owner: nasirovx
- Created: 2024-07-03T18:21:46.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-07T23:15:56.000Z (6 months ago)
- Last Synced: 2024-11-06T01:21:02.732Z (about 2 months ago)
- Topics: api, api-github, github, python
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub User Search by Location
This script uses the requests library to send a GET request to the GitHub API, searching for users based on their location.
It sends a request to the GitHub API with parameters for location and the maximum number of results to return,
and parses the JSON response received.
Then it calls the print_usernames function, which prints the usernames from the list.At the end of the code, the get_github_users function is called with the argument 'Kyrgyzstan' to search for users with this location,
and then the result is passed to the print_usernames function to print their usernames.![GitHub Users](https://user-images.githubusercontent.com/101027445/214715960-a02d1244-9b62-424c-a4f3-c1f93a3aab3e.png)