Jump to content
UBot Underground

How Do I Append Text To A List?


Recommended Posts

I feel like this should be easy but I keep banging my head on the desk. I'm scraping a list of URLs and they are path relative so I need to add a prefix, eg. url: blahblah.html and I need to add http://blahsite.com/

 

I can't seem to figure out how to use the list or table functions to insert the http://blahsite.com/ part.

 

So let's say I have:

 

10 URLs I scraped. I want to add them to a table as such: PrefixURL

 

I feel like I should be doing something with loops here...

 

Thanks in advance.

Edited by nubot
Link to post
Share on other sites

clear all data
add list to list(%MyList1,$list from text("a,b,c,d",","),"Delete","Global")
with each(%MyList1,#Data) {
    add item to list(%MyList2,"Prefix {#Data}","Don\'t Delete","Global")
}
alert(%MyList2)
  • Like 1
Link to post
Share on other sites
clear all data
add list to list(%MyList1,$list from text("a,b,c,d",","),"Delete","Global")
with each(%MyList1,#Data) {
    add item to list(%MyList2,"Prefix {#Data}","Don\'t Delete","Global")
}
alert(%MyList2)

 

Thank you!!

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