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: about 1 month ago
JSON representation

:star2: Download Github user's stars information to local md/json file

Lists

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.sh

Options:
-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**.

---

Buy Me A Coffee