Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- import requests
- import json
- import time
- #steam api key
- APIKEY = "321B0A884A852C7283937521E6C2BB9D"
- userurl = input("Input a vanity URL: ")
- userid = input("Input a steam64 id: ")
- class User:
- def __init__ (self, steamID64, profileUrl = None):
- self.steamID64 = steamID64
- self.profileUrl = profileurl
- def get_player_summaries(steamID64List):
- url = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" + APIKEY + "&steamIDS=" + userid
- jsonResp = json.loads(response)
- returnUserList = []
- for player in jsonResp['response']['players']:
- steamID64 = player['steamid']
- profileUrl = player['profileurl']
- if player['profileurl'] == "http://steamcommunity.com/id/" + userurl + "/": #url unchanged
- returnUserList
- else: #url changed
- print("vanity url changed")
- return returnUserList
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement