Jump to content
UBot Underground

Remove white space from list


Recommended Posts

  • 3 weeks later...

Can anyone give me an example of this?

 

What I'm doing is scraping related searches from Google, but because of the way I'm doing this (grabbing it from the URL), all the spaces are plusses. I want to go through my list and replace any instance of "+" to a space. I'm not sure how to implement the $replace command as I haven't found any good examples of it. Should I be replacing the "+" while scraping/adding to list, or after the complete list is created?

Link to post
Share on other sites

Attached an example.

 

Basically you need to loop through your list and create a new list that replaces the next list item + with $nothing.

 

The example is something for another bot but gives you an example.

post-158-12623898259271_thumb.jpg

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