forked from danielsaban/data-scraping-sofascore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
19 lines (15 loc) · 915 Bytes
/
Copy pathconfig.py
File metadata and controls
19 lines (15 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DB_NAME = "sofa_score"
PASSWD = "Sofa_Score_2020"
USERNAME = "Daniel"
HOST = "localhost"
API_URL = r"https://www.thesportsdb.com/api/v1/json/1/searchteams.php?t="
POSSIBLE_FOOT = ['Right', 'Left', 'Both']
POSSIBLE_POSITION = ['G', 'D', 'M', 'F']
PLAYER_FIELDS = ['birth_date', 'height', 'prefd_foot', 'position',
'shirt_num', 'nationality']
# MANAGER_FIELDS = ['birth_date', 'nationality', 'pref_formation', 'avg_points_per_game',
# 'games_won', 'games_drawn', 'games_lost']
TOP_LEAGUES_URLS = {"seriea": r"https://www.sofascore.com/tournament/football/italy/serie-a/23",
"laliga": r"https://www.sofascore.com/tournament/football/spain/laliga/8",
"premier": r"https://www.sofascore.com/tournament/football/england/premier-league/17",
"bundes": r"https://www.sofascore.com/tournament/football/germany/bundesliga/35"}