Jump to content
UBot Underground

Recommended Posts

Hello guys i need to scrape atribute, want to search for innertext "insane" and give the result as "online2". my problem is that there is one class inside another one. so i always get answer "player" instead of "online2"

any idea how i can do it?

 

 

website code:

<td class="player">

                <img src="img/x.gif" class="online2">

                <a href="/spieler.php?uid=5600">Insane</a>

                            </td>

 

i'm using this code:

 

set(#test$scrape attribute(<innertext=" Insane">"class"), "Global")

Link to post
Share on other sites

Few things wrong here, first there appears to be ea space before "Insane"

 

So you should change it to be this:

set(#test,$scrape attribute(<innertext="Insane">,"class"),"Global")

And the second issue is that there is no class for that tag, so even if you target it properly you won't scrape anything. You seem to want to get the tag before it, and this is probably possible but given your code its hard to say. I would need to see more of the page to be able to properly target it.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...