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
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.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e419b99ef90612e336c62e9d48aa2049e38b3e509d3caf1ffcb8b460336c513 |
|
MD5 | f95ec619f0bccd116b7c29738a58042f |
|
BLAKE2b-256 | b4a0a6c49c7800f9390daf192a4a97c2002004872d5a33e6f2193365e4979d9d |