Spaces:
Running
Running
Update lichess_api.py
Browse files- lichess_api.py +1 -1
lichess_api.py
CHANGED
|
@@ -17,7 +17,7 @@ def send_request_study(pgn):
|
|
| 17 |
headers = {'Content-type': 'application/json', 'Authorization': 'Bearer lip_BjQvmi41pb705z5JhSRE'}
|
| 18 |
response = requests.post(url2, data=data, headers=headers)
|
| 19 |
print(response.status_code)
|
| 20 |
-
|
| 21 |
chapter_id = response.json()["chapters"][0]["id"]
|
| 22 |
study_game_link = "https://lichess.org/study/Kc7E2x1A/" + chapter_id
|
| 23 |
print(study_game_link)
|
|
|
|
| 17 |
headers = {'Content-type': 'application/json', 'Authorization': 'Bearer lip_BjQvmi41pb705z5JhSRE'}
|
| 18 |
response = requests.post(url2, data=data, headers=headers)
|
| 19 |
print(response.status_code)
|
| 20 |
+
print(response.json())
|
| 21 |
chapter_id = response.json()["chapters"][0]["id"]
|
| 22 |
study_game_link = "https://lichess.org/study/Kc7E2x1A/" + chapter_id
|
| 23 |
print(study_game_link)
|