onroto-standings-scraper

2.0.0 • Public • Published

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

/onroto-standings-scraper/

    Package Sidebar

    Install

    npm i onroto-standings-scraper

    Weekly Downloads

    10

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • tphummel