shauryaDugar commited on
Commit
7d38f50
·
verified ·
1 Parent(s): ed5d885

Update lichess_api.py

Browse files
Files changed (1) hide show
  1. 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
- pring(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)
 
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)