Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- users = '''DOKDI
- DUDIK
- LARA
- Luli
- NETA789
- amitaikop
- angga
- anita100
- ardoron
- asma_malak
- benam
- brawfab
- cazc
- chshir
- crami
- ctownjice
- daltonjakob
- dangphu
- daria
- dial
- dice
- diegoms
- dislilgirlelmoxP
- eR_ToNio
- eliman
- emilg
- ercizhu
- fisher
- frankj
- gald
- galgal1
- grace325
- gunlove80
- hannakatherine
- imogen
- jaygirlie
- jb_irie
- jimmyroa
- jordanroberts
- juange
- jucazero
- justint
- kalapola
- lalunaesmilugar
- libana
- lilmissmoe
- litep
- m0azam
- madsam
- maplezdragon
- meraj07
- minazuki
- mosgal
- moshech1
- naheel
- nate123
- negra
- netanel
- noac
- noaca
- nofar
- o_kleef
- ori
- orpinto
- pauly
- radir
- reginamim
- rotem
- runar
- scarface
- shenhav
- testaccount1234
- vhamlett2008
- viocan
- volcomhalo
- yaffa18
- yahv
- yan_galy
- zion100
- zpy
- zshankweiler12'''.splitlines()
- from requests import get
- ids = dict()
- for user in users:
- ids[user] = get(f"https://api.scratch.mit.edu/users/{user}/").json()["id"]
- sorted_dict = dict()
- sorted_keys = sorted(ids, key = ids.get)
- for w in sorted_keys:
- sorted_dict[w] = ids[w]
- ids = sorted_dict
- for i in ids:
- print(str(i) + ": " + str(ids[i]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement