GithubHelp home page GithubHelp logo

nestoralonso / export-github-stars Goto Github PK

View Code? Open in Web Editor NEW

This project forked from umaar/export-github-stars

0.0 1.0 0.0 2.41 MB

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

JavaScript 74.10% CSS 1.37% HTML 11.89% Makefile 1.13% SCSS 11.51%

export-github-stars's Introduction

GitHub Star Export

Actions Status

Export all your GitHub stars.

preview.png

This webapp queries the GitHub API to query for the stars of a GitHub user, 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. You can fetch stars of many users.

preview-jobs.png

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
make migrate-db-dev
make start

TODO:

  • Send emails using an email service about database size changes
  • Automatically update user stars every ~ few hours
  • Insert stars/repos using transactions in bulk
  • Implement ajax for pagination
  • Cache users and their star counts
  • Use http://nvd3.org/ to visualise a users stars over time
  • For many stars, should I use something like this https://github.com/tbranyen/hyperlist
  • Configure pooling correctly: knex/knex#2820 (comment) e.g.
"pool": {
  "min": 2,
  "max": 6,
  "createTimeoutMillis": 3000,
  "acquireTimeoutMillis": 30000,
  "idleTimeoutMillis": 30000,
  "reapIntervalMillis": 1000,
  "createRetryIntervalMillis": 100,
  "propagateCreateError": false // <- default is true, set to false
},

export-github-stars's People

Contributors

umaar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.