Created
February 10, 2021 12:29
-
-
Save irohasu2120-zz/d4802c10326c682e406a30014deaf9af to your computer and use it in GitHub Desktop.
XBOX実績コンプリスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = "https://xbl.io/api/v2/achievements" | |
headers = { | |
'X-Authorization': 'API Keyをここに入力', | |
'accept': 'application/json;charset=UTF-8' | |
} | |
res = requests.get(url, headers=headers) | |
achievements = res.json() | |
compliteList = [] | |
for achive in achievements["titles"]: | |
if int(achive["achievement"]["progressPercentage"]) == 100: | |
compliteList.append(achive["name"]) | |
compliteList.sort() | |
for title in compliteList: | |
print(title) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment