Jump to content
UBot Underground

Loading data from csv


Recommended Posts

Hello!

 

 

Anyone can help me with my first bot.

I`ll try to complete my wordpress blog to add articles from a csv files.

I have an csv with 2columns title and description

I want to go to wordpress and add 1 by 1 to the wordpress blog.

I attach my ubot source till now, maybe an admin can help me with this.

wordpress-notdone.ubot

Link to post
Share on other sites

Hi Herman. here is the format you need to loop through a csv file using more than one column.

 

It works like this. Set two variables (one for each column). I called then #titlecolumn (set to 0) and #descriptioncolumn (set to 1). You then set a variable for the row. I called it #row, and it's set to 0.

 

Use the $total table rows for the number of cycles in the loop

 

When you fill each field, you will use $table cell with the appropriate variables (you will see that in the script).

 

Increment the variable #row.

 

When you run this script you will see the two fields being filled with the next table row items (in this case all the titles are numbers and all the desc's are letters).

 

Place the .csv file on your desktop to run this script.

 

csv_loop.zip

 

 

 

John

Link to post
Share on other sites
  • 6 months later...

Hi,

 

There is a problem with this bot - it seems it is built for Ubot3X and now we are operating Ubot4. Is there any way to change it for Ubot4? The problem is that I can not apply the succession of commands in order to fill a list of register forms from CSV and all available materials point to Ubot old versions (BTW -are there any tutorials on Ubot 4 concerning the matter)

 

Best Regards

 

UPDATE - read the explanation carefully and created necessary script

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