Jump to content
UBot Underground

Save results to CSV


Recommended Posts

Ok this is the way i always do this, but somehow today it is failing.

Very weird.

 

I scrape 2 elements on a site and add these to 2 different lists.

Let's call this listA and listB.

Now i want to save them to CSV.

So i select "Save to file" and add listA and listB and put a comma in between.

 

Result: it does NOT add the comma in the CSV file and put list B under list A.

In other words it makes 1 big list under each other, instead of near each other comma separated.

 

So instead of:

 

word1,word2

 

it shows:

 

word1

word2

 

See screenshot attached.post-376-12845006034626_thumb.png

Link to post
Share on other sites

Ok this is the way i always do this, but somehow today it is failing.

Very weird.

 

I scrape 2 elements on a site and add these to 2 different lists.

Let's call this listA and listB.

Now i want to save them to CSV.

So i select "Save to file" and add listA and listB and put a comma in between.

 

Result: it does NOT add the comma in the CSV file and put list B under list A.

In other words it makes 1 big list under each other, instead of near each other comma separated.

 

So instead of:

 

word1,word2

 

it shows:

 

word1

word2

 

See screenshot attached.savelist.png

 

That way does not work. Are you sure that's the way you've always done it?

 

You would have to put each list item in a table cell, and increment the rows.

Link to post
Share on other sites

That way does not work. Are you sure that's the way you've always done it?

 

You would have to put each list item in a table cell, and increment the rows.

 

Check Seth's video here and you see exactly how i do it:

 

http://vimeo.com/7891497

 

(starts at 4:33)

Link to post
Share on other sites

Check Seth's video here and you see exactly how i do it:

 

http://vimeo.com/7891497

 

(starts at 4:33)

 

Yea, that is an old tutorial and the method has changed since adding the tables part of UBot Studio. Did you say you've always done this in the New version of UBot?

Link to post
Share on other sites

Yea, that is an old tutorial and the method has changed since adding the tables part of UBot Studio. Did you say you've always done this in the New version of UBot?

 

Last week i finished a bot this way i guess.

Will check it again.

 

So how is the new procedure going?

 

Is there a new video tutorial about how to save to CSV?

Link to post
Share on other sites

Last week i finished a bot this way i guess.

Will check it again.

 

So how is the new procedure going?

 

Is there a new video tutorial about how to save to CSV?

 

 

Yes, it's Tutorial 14, the tables Tutorial.

Link to post
Share on other sites

I had to make this yesterday, here is how I did it :

 

For me it just make a CSV with the format :

 

URL,Scrapped-categories

 

But off course you can do it to make :

 

elementofpage1,elementofpage2

 

SO THE SCRIPT IS :

- Get element1 and put in variable

- Get element 2 and put in variable

- Concatenate variables containing element1 and element2 in a list with a comma in between

- Save the list to a file (which will end up being CSV as you added the commas). This part is not in the screenshot but it's simply a "save to file"

 

Cheers,

post-1257-12849714522406_thumb.png

Link to post
Share on other sites

Ok this is the way i always do this, but somehow today it is failing.

Very weird.

 

I scrape 2 elements on a site and add these to 2 different lists.

Let's call this listA and listB.

Now i want to save them to CSV.

So i select "Save to file" and add listA and listB and put a comma in between.

 

Result: it does NOT add the comma in the CSV file and put list B under list A.

In other words it makes 1 big list under each other, instead of near each other comma separated.

 

So instead of:

 

word1,word2

 

it shows:

 

word1

word2

 

See screenshot attached.post-376-12845006034626_thumb.png

 

One way you can do it is load your data into lists (each list will become a table column). Save each list to file for debugging purposes. Then using the Variable Command, set_list_position and set_table_cell and Flow Command loop, load each table column with your lists one cell at a time.

 

Thats how I did it, but I sure wish there was a pre-existing function that made it easier to do this.

Link to post
Share on other sites
  • 4 months 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...