Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. import requests
  2.  
  3. file = open('output.txt', 'w+')
  4. cursor = ''
  5. aid = raw_input(':: ')
  6.  
  7. while True:
  8. url = requests.get('https://inventory.roblox.com/v1/assets/{0}/owners?limit=100&cursor={1}'.format(aid, cursor)).json()
  9. for l in url['data']:
  10. try:
  11. name = l['owner']['username']
  12. file.write(name+'\n')
  13. except:
  14. print'error'
  15. if 'nextPageCursor' in url.keys():
  16. cursor = url['nextPageCursor']
  17. else:
  18. break
  19.  
  20. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement