mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Fix matches url
This commit is contained in:
parent
daae31a298
commit
bf9b9c23b0
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
from functions import config
|
||||||
import re
|
import re
|
||||||
from requests import get
|
from requests import get
|
||||||
|
|
||||||
|
|
@ -38,7 +39,8 @@ def getJPLMatches(week: int):
|
||||||
"""
|
"""
|
||||||
JPL matches for a given matchweek
|
JPL matches for a given matchweek
|
||||||
"""
|
"""
|
||||||
current_day = get("https://api.sporza.be/web/soccer/matchdays/161733/{}".format(week))
|
jpl = config.get("jpl")
|
||||||
|
current_day = get(f"https://api.sporza.be/web/soccer/phases/{jpl}/matchdays/{week}")
|
||||||
|
|
||||||
# Something went wrong
|
# Something went wrong
|
||||||
if current_day.status_code != 200:
|
if current_day.status_code != 200:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue