nubot 1 Posted March 9, 2016 Report Share Posted March 9, 2016 (edited) 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 March 9, 2016 by nubot Quote Link to post Share on other sites
pash 504 Posted March 10, 2016 Report Share Posted March 10, 2016 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) 1 Quote Link to post Share on other sites
nubot 1 Posted March 10, 2016 Author Report Share Posted March 10, 2016 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!! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.