Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. import re
  2. import requests
  3. import json
  4. import time
  5.  
  6. #steam api key
  7. APIKEY = "321B0A884A852C7283937521E6C2BB9D"
  8. userurl = input("Input a vanity URL: ")
  9. userid = input("Input a steam64 id: ")
  10.  
  11. class User:
  12. def __init__ (self, steamID64, profileUrl = None):
  13. self.steamID64 = steamID64
  14. self.profileUrl = profileurl
  15.  
  16.  
  17. def get_player_summaries(steamID64List):
  18.  
  19. url = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" + APIKEY + "&steamIDS=" + userid
  20. jsonResp = json.loads(response)
  21.  
  22. returnUserList = []
  23.  
  24. for player in jsonResp['response']['players']:
  25. steamID64 = player['steamid']
  26. profileUrl = player['profileurl']
  27.  
  28. if player['profileurl'] == "http://steamcommunity.com/id/" + userurl + "/": #url unchanged
  29. returnUserList
  30. else: #url changed
  31. print("vanity url changed")
  32. return returnUserList
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement