forked from gabriel1200/player_sheets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdaily_scrape.sh
More file actions
executable file
·49 lines (39 loc) · 1 KB
/
Copy pathdaily_scrape.sh
File metadata and controls
executable file
·49 lines (39 loc) · 1 KB
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
#!/bin/bash
# Convert Jupyter notebooks to Python scripts in their respective directories
cd game_report
jupyter nbconvert --to script game_report_scrape.ipynb
jupyter nbconvert --to script pbp_gamelogs.ipynb
cd ..
cd teamgame_report
jupyter nbconvert --to script teamgame_report_scrape.ipynb
cd ..
cd team_totals
jupyter nbconvert --to script team_average_scrape.ipynb
cd ..
cd gen_totals
jupyter nbconvert --to script averages_scrape.ipynb
jupyter nbconvert --to script gen_totals.ipynb
cd ..
cd lineups
jupyter nbconvert --to script lineups.ipynb
cd ..
# Run the Python scripts in their respective directories
cd game_report
python game_report_scrape.py
python pbp_gamelogs.py
cd ..
cd team_totals
python team_average_scrape.py
cp team_averages.csv ../teamgame_report/team_averages.csv
cp team_averages_ps.csv ../teamgame_report/team_averages_ps.csv
cd ..
cd gen_totals
python averages_scrape.py
python gen_totals.py
cd ..
cd teamgame_report
python teamgame_report_scrape.py
cd ..
cd lineups
python lineups.py
cd ..