The script/package searches repositories on GitHub using GraphQL API.
--api-token
: GitHub API token or Personal Access Token--out-file
: Output file path--start-date
: Start date for search in dd-mm-yyyy--lang
: Primary programming language of the repositories--min-stars
: Minimum star count--verbose
: Verbose mode
python3 searchrepo.py --api-token 51ec41929c6f48c23482a734534327d308 --out-file 'repos.csv' --start-date '06-08-2022'
Install searchgithubrepo
package using pip
and use it in your program.
from searchrepo import search_repo
one_day_old_date = (datetime.datetime.now().date() - datetime.timedelta(days=1))
search_repo(start_date=one_day_old_date,
out_file='repos.csv',
api_token='51ec41929c6f48c23482a734534327d308',
stars=100,
lang='Java',
verbose=True)