A simple Data Scraping library for GitHub REST API v3
Project description
# githon
[](https://pypi.python.org/pypi/githon)   []() []() []() []() [](https://www.gratipay.com/marcosvbras)
Githon is a python library that provides a GitHub REST API v3 Data Scraping.
With this library you can: - Request user data through username or user ID - Control request errors easily - Use Application tokens or Personal User tokens to request data - Reduce spending on your requisition limit
## Installation Run the command:
` pip install githon `
## How to use Import the GithubApi class and create an object. Optionally pass an access token to constructor.
` >>> from githon import GithubApi >>> gh = GithubApi('YOUR_ACCESS_TOKEN') `
> NOTE: With access_token, your rate limit will be 5000 requests per hour. If you don’t provide an access_token, your number of requests will be limited to 60 requests per hour, according with GitHub REST API v3 docs. See more in https://developer.github.com/v3/#rate-limitingUse.
Sample code:
` >>> gh.user_by_username('marcosvbras') { 'blog': 'https://about.me/marcosvbras', 'followers': 7, 'following': 28, ...} `
## Methods - `user_by_username`: Request user based in Github login. - `user_by_id`: Request user based in Github User ID. - `user_emails`: Retrieve a list of emails from a given access_token. Requires the user access token. - `followers_by_id`: Request the user followers based in Github login. - `followers_by_username`: Request the user followers based in Github ID. - `following_by_id`: Request the user following based in Github ID. - `following_by_username`: Request the user following based in Github login. - `gists_by_id`: Request the user gists based in Github ID. - `gists_by_username`: Request the user gists based in Github login. - `repositories_by_id`: Request the user repositories based in Github ID. - `repositories_by_username`: Request the user repositories based in Github login. - `search_users`: Search users with a Github query. - `get_request_limit`: Request the API Rate Limit to your token.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file githon-0.7.0.tar.gz
.
File metadata
- Download URL: githon-0.7.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3007e274fce6e4cee2bab478c55f2f5413a21b9677f6e862410e3f9f74146783
|
|
MD5 |
a85021455652ebbb7128c288a90c8565
|
|
BLAKE2b-256 |
6498ff6ae2ccf161230b28e99e39e433f2fc2acd0524fb4f177e75e8368d5c0e
|
File details
Details for the file githon-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: githon-0.7.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2df4b72e695439ebcdafe6e8e847b23e438294e05fdc333e2d5b69b7bd51c639
|
|
MD5 |
46919f0483108dc9121915bf54be2895
|
|
BLAKE2b-256 |
fc15cb7e61fd8eacfd265baa0037453512e94b8f73a38a597334cd0ec1088908
|