forked from vishaalagartha/basketball_reference_scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamples.py
57 lines (36 loc) · 1.46 KB
/
examples.py
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
from basketball_reference_scraper.teams import get_roster, get_team_stats, get_opp_stats, get_roster_stats, get_team_misc
df = get_roster('GSW', 2019)
print(df)
s = get_team_stats('GSW', 2019, data_format='PER_GAME')
print(s)
s = get_opp_stats('GSW', 2019, data_format='PER_GAME')
print(s)
s = get_roster_stats('GSW', 2019, data_format='PER_GAME', playoffs=False)
print(s)
s = get_team_misc('GSW', 2019)
print(s)
from basketball_reference_scraper.players import get_stats, get_game_logs
s = get_stats('Stephen Curry', stat_type='PER_GAME', playoffs=False, career=False)
print(s)
df = get_game_logs('LeBron James', '2010-01-19', '2014-01-20', playoffs=False)
print(df)
from basketball_reference_scraper.seasons import get_schedule, get_standings
s = get_schedule(2018, playoffs=False)
print(s)
s = get_standings(date='2020-01-06')
print(s)
from basketball_reference_scraper.box_scores import get_box_scores
s = get_box_scores('2020-01-13', 'CHI', 'BOS', period='GAME', stat_type='BASIC')
print(s)
from basketball_reference_scraper.pbp import get_pbp
s = get_pbp('2020-01-13', 'CHI', 'BOS')
print(s)
from basketball_reference_scraper.shot_charts import get_shot_chart
s = get_shot_chart('2020-01-13', 'CHI', 'BOS')
print(s)
from basketball_reference_scraper.injury_report import get_injury_report
s = get_injury_report()
print(s)
from basketball_reference_scraper.players import get_game_logs
df = get_game_logs('Pau Gasol', '2010-01-12', '2010-01-20', playoffs=False)
print(df)