Jump to content
UBot Underground

A little help needed


Recommended Posts

Hi Ubotters,

I was creating my first bot, but got stuck. I cant figure out how to crop and append urls. This is what I am trying to do:

I have a list of URLs, all of them look like this:

 

http://www.domain.com/index.php?AHT=8&id=3Wl87CEOPD

 

 

and i want to change and navigate to:

http://www.domain.com/index.php/member/login/

 

 

as you can see, the part until "index.php" remains the same and after that I want to remove the "?AHT=8&id=3Wl87CEOPD" and instead add "/member/login/" to the end.

 

Can someone give me an idea how to go about doing this in ubot.

 

I will appreciate it very much. Thanks

Link to post
Share on other sites

Hi Ubotters,

I was creating my first bot, but got stuck. I cant figure out how to crop and append urls. This is what I am trying to do:

I have a list of URLs, all of them look like this:

 

http://www.domain.com/index.php?AHT=8&id=3Wl87CEOPD

 

 

and i want to change and navigate to:

http://www.domain.com/index.php/member/login/

 

 

as you can see, the part until "index.php" remains the same and after that I want to remove the "?AHT=8&id=3Wl87CEOPD" and instead add "/member/login/" to the end.

 

Can someone give me an idea how to go about doing this in ubot.

 

I will appreciate it very much. Thanks

 

You would need to use $replace - if you watch the tutorial on how to build your own Google keywords bot it explains $replace. Alternatively - you could try the Strings library on this forum. That also has a string replace function.

  • Like 1
Link to post
Share on other sites

I have a list of URLs, all of them look like this:

 

http://www.domain.com/index.php?AHT=8&id=3Wl87CEOPD

 

 

and i want to change and navigate to:

http://www.domain.com/index.php/member/login/

Thanks to alcr I can attach more bots so try this example:

Regex Eval URL.ubot

  • Like 1
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...