Skip to content

Commit a4a00b0

Browse files
author
Director of Analytics
committed
added baseball example
1 parent fad5daf commit a4a00b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/sample.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@
1616
#using stdin
1717
curl https://dl.dropbox.com/u/49171662/example.txt | ../bin/hist.py
1818

19+
#getting data from a webpage
20+
curl http://www.baseball-reference.com/ \
21+
| grep -o -E "[$]([0-9]+)" | grep -o -E "[0-9]+" \
22+
| ../bin/hist.py -b 20 -t "Baseball Payrolls" --height 20 --pch "*"
23+
24+

0 commit comments

Comments
 (0)