Jump to content
UBot Underground

Newbie: Run Javascript command


Recommended Posts

I would like to use Javascript to do some complicated string manipulation. How can I pass in multiple variables #var1, #var2, #var3, run javascript, and then return #value?

 

I have version 4.0

 

Thanks

Link to post
Share on other sites
  • 1 month later...

Hey John

 

i have a csv file with 15 scraped urls in it

all the urls are mostly the same except a folder on the domain

for example:

 

http://ubotstudio.com/tutorials/blahblah.html,http://ubotstudio.com/tutorials/adifferentblah.html,http://ubotstudio.com/tutorials/otherblah.html,and so on

 

I want to search through it and find a specific url and determine its position in the file (ie column number)

then return the column number as a variable to use elsewhere in the bot

 

i have tried $contains to search the variable (the url is set as a variable) and cannot get it to work :|

 

probably easy peasy to a JS ninja like yourself :)

thanks

ice cold beer[4] going down well

Link to post
Share on other sites

It doesn't sound like it needs any javascript. You can loop through the list and insert the if(list item)--->contains(something) condition...

 

 

John

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