我想加载这个apiurl并获取数据。我用这个代码得到这个,但我得到了400个错误的请求。 实际的网站链接是(https://www.lffs.eu/les-clubs/)
'''
import urllib, json
enter code hereurl = "https://gestion.lffs.eu/lms_league_ws/public/api/v1/club/byMyLeague?filter=&club_status_id=1&page=2&pagination=21"
response = urllib.urlopen(url)
data = json.loads(response.read())
print(data)
'''
您使用API的方式有问题。如果你在谷歌上运行它,你会看到错误。API希望您提供某种令牌。确保你先提供它
相关问题 更多 >
编程相关推荐