Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def get_today_football_matches() -> str:
|
|
| 30 |
|
| 31 |
today = datetime.today().strftime('%Y-%m-%d')
|
| 32 |
api_url = f"https://api.football-data.org/v4/matches?dateFrom={today}&dateTo={today}"
|
| 33 |
-
headers = {"X-Auth-Token": "
|
| 34 |
|
| 35 |
try:
|
| 36 |
response = requests.get(api_url, headers=headers)
|
|
|
|
| 30 |
|
| 31 |
today = datetime.today().strftime('%Y-%m-%d')
|
| 32 |
api_url = f"https://api.football-data.org/v4/matches?dateFrom={today}&dateTo={today}"
|
| 33 |
+
headers = {"X-Auth-Token": "GET https://api.football-data.org/v4/matches"} # Replace with your actual API key
|
| 34 |
|
| 35 |
try:
|
| 36 |
response = requests.get(api_url, headers=headers)
|