Skip to content

Instantly share code, notes, and snippets.

@irohasu2120-zz
Created February 10, 2021 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irohasu2120-zz/d4802c10326c682e406a30014deaf9af to your computer and use it in GitHub Desktop.
Save irohasu2120-zz/d4802c10326c682e406a30014deaf9af to your computer and use it in GitHub Desktop.
XBOX実績コンプリスト
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