barista 0 Posted May 17, 2010 Report Share Posted May 17, 2010 Hi this is probably basic, but I scrape some data twice a week and save it to a text file. I use winautomation to append that data into another text file (which has all the previous data in it). Is this possible using Ubot? ThanksBarista Quote Link to post Share on other sites
Net66 54 Posted May 17, 2010 Report Share Posted May 17, 2010 Hi this is probably basic, but I scrape some data twice a week and save it to a text file. I use winautomation to append that data into another text file (which has all the previous data in it). Is this possible using Ubot? ThanksBarista This has been asked before but I couldn't find it on a quick search. Anyway to append you can do something like this... Andy Quote Link to post Share on other sites
alcr 135 Posted May 17, 2010 Report Share Posted May 17, 2010 I'm not sure that one actually would work, but you would have to load in the .txt or csv into a list, add the new information and then save the combined list to the .txt again since it is overwriting every time Quote Link to post Share on other sites
barista 0 Posted May 17, 2010 Author Report Share Posted May 17, 2010 I'm not sure that one actually would work, but you would have to load in the .txt or csv into a list, add the new information and then save the combined list to the .txt again since it is overwriting every time Yes I figured this would be the case.thanks. Quote Link to post Share on other sites
Net66 54 Posted May 17, 2010 Report Share Posted May 17, 2010 It worked when I tried it here Quote Link to post Share on other sites
urameshee 0 Posted May 17, 2010 Report Share Posted May 17, 2010 I'm not sure that one actually would work, but you would have to load in the .txt or csv into a list, add the new information and then save the combined list to the .txt again since it is overwriting every time Will be great to have and additional parameter on 'save to file' where we can select to append or not data to a file. Your solution will work, but it have very hard resource consuming, it is not practical to make a log file in a list (on memory). Please don't take this as a complain, i love ubot tool, but the file append is a trivial operation even the most simple programming language, i guess it should be easy to implement. Quote Link to post Share on other sites
UBotBuddy 331 Posted May 20, 2010 Report Share Posted May 20, 2010 Nice Andy! Absolutely Nice! You know what I am working on so this fixes one of my final little details. That's one notch off of the ToDo list! Quote Link to post Share on other sites
theninjamanz 29 Posted May 31, 2010 Report Share Posted May 31, 2010 That's a top tip. Going to make a minor addition by way of a new line so you get nicely formatted outputs Quote Link to post Share on other sites
JohnB 255 Posted June 1, 2010 Report Share Posted June 1, 2010 Works for me, except it's entering two of each entry. John Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.