Package Exports
- onroto-standings-scraper
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (onroto-standings-scraper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
onroto standings scraper
convert onroto.com standings html to json
usage
npm install -g onroto-standings-scraper
curl http://baseball1.onroto.com/baseball/webtest/display_stand.pl?leagueid&session_id=XXXYYY > standings.html
onroto-standings-scraper ./standings.html > standings.json
cat standings.json | jq ".standingsDate"
> "2017-04-28"
docker usage
curl http://baseball1.onroto.com/baseball/webtest/display_stand.pl?leagueid&session_id=XXXYYY > /Users/tom/baseball/standings.html
docker run --rm tomh/onroto-standings -v /Users/tom/baseball:/var/data/ /var/data/standings.html > standings.json
cat standings.json | jq ".standingsDate"
> "2017-04-28"
note: usage examples reference the jq library. this is not strictly required.
development
git clone https://github.com/tphummel/onroto-standings-scraper.git oss
cd oss
npm install
./bin.js --help