onroto-standings-scraper

v2.0.0
convert onroto.com standings html to json
baseball rotisserie fantasy standings onroto scraping scraper

onroto standings scraper

Greenkeeper badgeBuild Status js-standard-style Docker Repository on Quay

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
npm i onroto-standings-scraper

Metadata

  • MIT
  • Whatever
  • Tom Hummel
  • released 4/29/2017

Downloads

Maintainers