Hello;
I am new to Kantu and don’t know about scripting, try to learn,
from the examples of inbuilt macros, I tried to make a script from these examples and it is working, but some part not working the way I want to:
The script search youtube with keyword pulled from csv file, then save some text from different places of found results into csv file, I want to loop it, it works with the loop button on Kantu,
but when I loop it let’s say 10 times , after working all 10 loops, it save the results to 10 csv files,
so I have to delete 9 csv files because only the 10th. csv file have the complete info.
I am not sure how to code the right way.
any way to make it write to one csv file only.
appreciate your help.
here is my code:
"Command": "open",
"Target": "https://www.youtube.com/",
"Value": ""
"Command": "click",
"Target": "name=search_query",
"Value": ""
"Command": "csvRead",
"Target": "ytSearchKw.csv",
"Value": ""
"Command": "type",
"Target": "name=search_query",
"Value": "${!COL1}"
"Command": "click",
"Target": "id=search-icon-legacy",
"Value": ""
"Command": "storeText",
"Target": "xpath=//*[@id=\"keyword-score-mount\"]/div/div[1]/div/span[2]",
"Value": "c2"
"Command": "store",
"Target": "${c2}",
"Value": "!csvLine"
"Command": "storeText",
"Target": "xpath=//*[@id=\"keyword-score-mount\"]/div/div[2]/div/span[2]",
"Value": "c2"
"Command": "store",
"Target": "${c2}",
"Value": "!csvLine"
"Command": "storeText",
"Target": "xpath=//*[@id=\"keyword-score-mount\"]/div/div[3]/span[2]",
"Value": "c2"
"Command": "store",
"Target": "${c2}",
"Value": "!csvLine"
"Command": "echo",
"Target": "${!csvLine}",
"Value": ""
"Command": "csvSave",
"Target": "YT-info6",
"Value": ""
"Command": "localStorageExport",
"Target": "YT-info6.csv",
"Value": ""