Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Insert URL inside Google Spreadsheet [escaping characters?]

$
0
0

OK, the big picture is to use all my API Steam results inside Google Spreadsheet so I can create a database of my games and profile.

note: I don't want to share my private STEAMID for security reasons

So far so good, using the command =importXML(url, xpath_query, locale). I tried.

=IMPORTXML("https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=XXXXXXXXXXXXXXXXXXXX&steamids=XXXXXXXXXXX&format=xml", "/html/body/div[3]/div/div[2]/div/div[2]/div/div[2]/div[4]/span[2])"

in the end I also tried changing , en_US) and removing the,

notice that my xml locale appears ES because it is in Spain.

But I believe that's not the reason for the error rather escaping the characters /?: and any other if I didn't find it.

I tried to escape ? with ~ but the failure persists.

Why am I using xpath? is because it's the only way I know for now. I'll try python later or I could just import the .json inside the Spreadsheet but for now I need xpath.

the url above with STEAMID provides me a resulting file in .json, .xml, or .vdf


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>