Jump to content
UBot Underground

Appending a List


Recommended Posts

Can someone please help with this?

 

I am scraping a Text Box, and then adding what is insdie the box to an existing list. Inside the Text Box I might have something like:

 

Google

Bing

 

and then the next time:

 

Yahoo

Yandex

 

and then...

 

Baidu

DogPile

 

At the end though, when I save the list, I end up with something like this:

 

Google

BingYahoo

YandexBaidu

DogPile

 

Is there a way to make sure each time an item goes onto the list, it starts on a new line?

 

Here is my code:

================

navigate("http://scrape_the_box.com/", "Wait")

wait for element(<id="mainBox">, "", "Appear")

wait(1)

add list to list(%engines, $scrape attribute(<id="mainBox">, "value"), "Delete", "Global")

================

Link to post
Share on other sites

Do you have a real url we can work with?

 

John

 

Josh, unfortunately it isn't doing that.

 

And sorry, John. I can not give out the real URL. It's a private script behind a firewall. The only way around this has been to add another item to the list "***" between each iteration of the loop, and then copy the final scraped list into Word and replace the "***" with "^p"

 

Anyone have any ideas?

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