Skip to content

A Node.js webapp to scrape the stars of specified GitHub users

Notifications You must be signed in to change notification settings

umaar/export-github-stars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Star Export

This webapp queries the GitHub API to access your stars, and stores them in an SQLite database. 10,000 stars will occupy ~6mb worth of data.

This repo uses persistent queues, and supports resumable downloading of stars.

To run

  1. Get a GitHub token from https://github.com/settings/tokens

  2. Create a .env file:

# Contents of .env

GITHUB_TOKEN=your token here

# Any name for your new database
DATABASE_NAME=output
  1. Run these commands:
npm i
npm run migrate-db-dev
npm start

TODO:

"pool": {
  "min": 2,
  "max": 6,
  "createTimeoutMillis": 3000,
  "acquireTimeoutMillis": 30000,
  "idleTimeoutMillis": 30000,
  "reapIntervalMillis": 1000,
  "createRetryIntervalMillis": 100,
  "propagateCreateError": false // <- default is true, set to false
},

About

A Node.js webapp to scrape the stars of specified GitHub users

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published