2.0.0 • Published 7 years ago

onroto-standings-scraper v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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
2.0.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago