-
Notifications
You must be signed in to change notification settings - Fork 0
/
_retrieve-data.js
82 lines (72 loc) · 1.64 KB
/
_retrieve-data.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* retrieve data */
var qs = require('querystring'),
request = require('request'),
querystring = qs.stringify({
json: 1,
sport: "basketball/cbk",
id: "1576364",
"box": "true",
"pbp": "true",
"linescore": "true"
}),
dataUrl = "http://www.si.com/pbp/liveupdate";
request(dataURL + "?" + querystring, function (error, response, body) {
if (!error && response.statusCode == 200) {
}
});
conference
record
nickname
team abbreviation
team location (Marquette, Seton Hall)
team record
team score
team score first half
team score second half
isWinner
record (win/loss/percentage)
teamID
isNeutralSite
team stats
timeouts remaining
field goals (made / attempted)
freethrows (made / attempted)
ejections
threepoints (made / attempted)
rebounds (offesnive, defensive)
assists
steals
blockedshots
turnovers
personal fouls
technicals (player, coach, bench)
player stats
position
minutes played
name
uniform
started t/f
field goals (made / attempted)
freethrows (made / attempted)
threepoints (made / attempted)
rebounds (offesnive, defensive)
assists
steals
blockedshots
turnovers
personal fouls
technicals
disqualified
ejected
play-by-play
time stamp
period
players involved
visitor score
home score
home fouls
visitors fouls
play Text (full string - john missed a 15 footer)
play id / name (high level type of play - foul, sho)
playevent (second level -- offensive, dunk, jumper)
distance (from basket -- only only shots?)