#github #fetch #star #repo #cli #info #stargazers

app star-scraper

Utility to fetch info about GitHub stargazers

6 releases

0.1.5 Mar 27, 2023
0.1.4 Jan 20, 2023
0.1.3 Dec 30, 2022
0.1.2 Jul 1, 2022

#299 in Machine learning

MIT license

30KB
451 lines

🌟 Star Scraper npm version crates.io

CLI tool and GitHub Action to get some basic stats about a repo's stars and how many of those stars come from members of that organization 👀

  • Create a GitHub PAT (Personal Access Token) with org:read scope and set it as the $GITHUB_TOKEN environment variable

Installation

yarn global add star-scraper
# or
# npm i -g star-scraper
# or
# cargo install star-scraper

star-scraper

Usage

star-scraper --org <my-github-org> \
             --repo <my-github-repo> \
             --token <my-github-pat> \
             --limit <max-records-to-fetch>
  • --org, --repo and --token are required.
  • --token can optionally be supplied as an environment variable via GITHUB_TOKEN.
  • --limit is optional and defaults to 100,000.

Run as a GitHub action

  • Fork this repo
  • Set the GH_TOKEN actions secret on the repo
  • Manually run the star gazer report workflow

Dependencies

~21–36MB
~681K SLoC