Hi there!
I’m trying to find and collect titles of search results on a website. Tried it first with storeText alone, but it always stopped at the first occurence of a title and I want them all. I have a while-loop now which stores the text (headline) as !csvLine and after the loop it does csvSave, which is what I want and works as expected.
But when I run the macro again, it appends the same results in the csv, which is not great. I would want kantu to overwrite the same first line everytime the macro runs (so I can easily do other stuff with the collected data). Is there a command which can delete/clear the file before running?
If you use xmodule and save tha csv in hard drive (your hard disk) you can run a batch file to delete the csv (via xtype command)
If you use local storage mode (save csv inside kantu with csv manager) you can create a new csv directly with kantu with the function csvline and csvsave. Kantu when try to save info in csv if the csv is not present will be created by Kantu.