import requests
import re
import pandas as pd
regexName = re.compile('"name":"(.*?)"'.strip())
def getSteamGames(steamUserName):
strURL = 'https://steamcommunity.com/id/' + steamUserName + '/games/?tab=all'
res = requests.get(strURL)
res.raise_for_status()
names = regexName.findall(res.text)
pd.DataFrame(names).to_clipboard(excel=True, header=False, index=False)