Library to fetch trending repos/users on GitHub
Project description
gtrending
Lightweight and easy-to-use python library for fetching trending repositories and developers. Relies on github-trending-api which is in JavaScript, so gtrending aims to fill the gap for python.
Simple Demo
from gtrending import fetch_repos
repos = fetch_repos(language="python") # get the result as a dict
for repo in repos:
print(repo["fullname"]) # full name (user/repo) of each repo
The above example will print all the trending Python projects on GitHub, trending today, and print their full names.
Requirements
- Python 3.6 or higher
Installation
pip3 install gtrending
API
Documentation: read the docs
fetch_repos()
Fetch trending repositories on GitHub
Parameters:
language (str, optional)
: Filtering by language, eg: pythonspoken_language_code (str, optional)
: The spoken language, eg: en for englishsince (str, optional)
: The time range, choose from: [daily, weekly, monthly]. Defaults to "daily"
Returns:
A list of dicts containing information for the trending repositories found
fetch_developers()
Fetch trending developers on GitHub
Parameters:
language (str, optional)
: The programming language, eg: pythonsince (str, optional)
: The time range, choose from [daily, weekly, monthly]. Defaults to "daily"
Returns:
A list of dicts containing information for the trending repositories found
If you liked this library, please give it a star, and maybe suggest more features!
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
Hashes for gtrending-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4796ae4a622c0ac2074f0f5015c53fdde4eb30d033f1535c43891f53b04b3259 |
|
MD5 | e3ca9be5cd18587c0fed2ecd9a733187 |
|
BLAKE2b-256 | 27b1aa56e2c2bb77975980f8f2a08fbe482d052788770bf22b8e7e5d59dca24b |