0.0.3 • Published 8 years ago

github-scraper-js v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

github-scraper

Scrapes the repositories you work on and stores info in a json file

npm.io npm.io npm.io npm.io

Code Style

This library adheres to the StandardJS code style.

npm.io

Config file

{
  "user": "...",
  "token": "...", 
  "user_agent": "...", 
  "wanted_keys": [
    "name", "description", "updated_at", "html_url", "language",
    "stargazers_count", "forks_count", "contributor_count"
  ],
  "target_file": "./target.json"
}

Usage

node ./lib/index.js {user} {token} {user-agent} {json-file-to-write}

or

node ./lib/index.js {json-config}

This can be used via a crontab or forever/pm2.