I wanted to create a google sheet where I put some steam profile links that I know are banned. And in the row next to it I wanted to output via importxml how long they are already banned.
Steam Class for ban is:
<div class="profile_ban_status">
<div class="profile_ban">
1 VAC ban on record
<span class="profile_ban_info">| <a class="whiteLink" href="https://support.steampowered.com/kb_article.php?ref=7849-Radz-6869&l=english" target="_blank" rel="noreferrer">Info</a></span>
</div>
2306 day(s) since last ban </div>
My importxml looks like this:
=IMPORTXML(B3, "//div[@class='profile_ban_status']")
But it doesn't work. Can anybody help me fix it?
=IMPORTXML(B3, "//div[@class='profile_ban_status']")? And also, can you provide the output values you expect? - Tanaikehttps://steamcommunity.com/id/071200and the expected output would be1 VAC ban on record- darby1 VAC ban on record | Infoin one cell and ` 2306 day(s) since last ban` in another cell, which is to be expected considering the HTML. Do you want something else instead? When you sayBut it doesn't work, what do you mean exactly? You are not getting the results I mentioned? - Iamblichus=IMPORTXML(B3,"//div[@class='profile_ban_status']"), no error occurs and the value of ` 1 VAC ban on record | Info` is obtained. So for example, how about=IMPORTXML(B3;"//div[@class='profile_ban_status']")? In this case,,is replaced with;. But I'm not sure whether this is the direct solution of your issue. I apologize for this. - Tanaike