Jump to content
UBot Underground

Add List to Table. Work correctly?


Recommended Posts

Hello.

 

I am working on scraper that takes some information by grabbing lists and putting them into columns in a table. For some reason, when I use the "add list to table Column" command, it puts quotes around the list and inserts it into one cell.

 

Is this normal, and I have to insert each line of the list into each cell by using a loop, or is the command made to put it down the list column. The later seems to make more sense it asks for "Starting" row and column.

 

Thanks from a newbie.

 

navigate("http://www.contestgirl.com/contests/contests.pl?f=d&c=ca&b=nb", "Wait")
set(#Table Line, 1, "Global")
clear table(&Data)
clear list(%Daily Contest Girl)
add item to list(%Daily Contest Girl, $scrape attribute(<outerhtml=w"<a href=\"http://*\" target=\"_blank\" rel=\"nofollow\">*</a>">, "href"), "Delete", "Global")
add list to table as column(&Data, 0, 0, %Daily Contest Girl)
save to file("C:\\Documents and Settings\\Chris\\My Documents\\ubot\\Contests\\new2.csv", &Data)

 

Chris

Link to post
Share on other sites

unfortunately you have to save the list to a file first, then add to table from file, then delete the file if you like that was saved.

 

add list to table as column or row does not work properly and see the comma as the delimiter

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