Jump to content
UBot Underground

[Solved] How to Add a Variable in URL?


Recommended Posts

Hello All,

 

First of all, yes, I watched 1,000 times this video about Variables:

 

http://vimeo.com/moogaloop.swf?clip_id=12923436&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1%22%20/%3E%3Cembed%20src=%22http://vimeo.com/moogaloop.swf?clip_id=12923436&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1

 

Sorry, I don't understand yet.

 

In fact, this video shows us how to handle variable in fields. Perfect.

 

But, I need to handle variable in URL (quite difficult for a newbie, even with this video...).

 

How to add a variable in URL?

 

I need to change "%s" with my variable:

 

siteexplorer.search.yahoo.com/search?p=%s&bwm=i&bwmo=d&bwmf=s

 

Here is my bot:

 

URL-Variable.ubot

 

It doesn't work, of course...

 

Thank you,

 

 

Rise

Link to post
Share on other sites

I have attached your changed bot.

 

The change is subtle.

 

When you go into the parameter window for the nav command and you add the URL variable, notice that a {1} is added at the end of the url. You want to replace whatever you are trying to replace (in this case, the %s) with the {1}

 

For example, if I want to replace ubotstudio.com in your url with a variable, i would place the {1} that represents the variable in the url like this in the parameter window:

 

http://siteexplorer.search.yahoo.com/search?p={1}&bwm=i&bwmo=d&bwmf=s

 

Click ok afterwards

 

 

You can run that example and it should navigate to the website.

URL-Variable.ubot

Link to post
Share on other sites
  • 2 years 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...