Jump to content
UBot Underground

Variables In Your Selector with Wildcards?


Recommended Posts

So I found this other thread on the board that helped me with putting variables into my selectors (basically drop the quote marks): http://ubotstudio.com/forum/index.php?/topic/7984-how-to-use-a-variable-in-your-selector/

 

But this didn't help me with using wildcards.

 

This is what I'm going for:

 

set(#agentid, "84574574", "Global")
add list to list(%agentevents, $scrape attribute(<href=w"*#agentid*">, "href"), "Delete", "Global")

 

They Key piece being this:

 

<href=w"*#agentid*">

 

I need that agent id variable to turn into an actual variable while still maintaining the wildcards.

 

Basically, there is a collection of links related to a specific "agent id" (its in the HREF) on the page, but I couldn't find any way to group them, so I'm trying to scrape them all into a list. That way I can loop through the list and manipulate each link individually. But I'm having trouble selecting the elements without wildcards :(.

 

I'd post the page but its behind closed doors which I cannot open up to the public :(.

 

Any thoughts?

Link to post
Share on other sites
  • 9 months later...

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...