Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KevCui/download-github-stars
:star2: Download Github user's stars information to local md/json file
https://github.com/KevCui/download-github-stars
bash bash-script github github-stars productivity starred-repositories stars
Last synced: 2 months ago
JSON representation
:star2: Download Github user's stars information to local md/json file
- Host: GitHub
- URL: https://github.com/KevCui/download-github-stars
- Owner: KevCui
- License: wtfpl
- Created: 2019-05-26T15:09:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T18:37:46.000Z (over 1 year ago)
- Last Synced: 2024-08-08T00:44:30.329Z (6 months ago)
- Topics: bash, bash-script, github, github-stars, productivity, starred-repositories, stars
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- project-awesome - KevCui/download-github-stars - :star2: Download Github user's stars information to local md/json file (Shell)
README
# downloadStars.sh
## Why?
The accuracy of finding starred repository in GitHub from Stars -> Filters is :expressionless:...
So, this script is made to download all starred repositories of a user to local md/json file. Then, using your favorite search tool/command to find the repository you want from local file :massage:.
## How?
### downloadStars.sh
```
Usage:
./downloadStars.sh -u [-f md|json] [-p ]Options:
-u github username
-f md|json output format: md, json
default format: json
-p start from page num
-h | --help display this help message
```By default, results will be stored in `./stars/.json`. If the option `-f md` is toggled, then results will be stored in a simple `./stars/.md`.
#### Limitation
This script is calling GitHub API to download starred repositories of a user. However, GitHub API has a [rate limit](https://developer.github.com/v3/#rate-limiting). Usually, it's `60` requests per hour for non-authenticated usage. If you run this script and reach API limit, changing your IP address will make this script work again immediately. My apology, I'm too lazy to implement authenticated requests ¯\\\_(ツ)\_/¯.
### downloadStarsLite.sh
```
Usage:
./downloadStarsLite.shOptions:
-h | --help display this help message
```As a lite (quick & dirty) version, `downloadStarsLite.sh` supports `md` output only. It goes through stars tab page by page. Therefore, it doesn't use GitHub API and it has **no rate limit**.
---