Cornerstone 0 Posted December 22, 2010 Report Share Posted December 22, 2010 I've got a bot that creates web2 sites. It adds all the account information such as username pass, url, rss feed, by setting table cells by colum and rowI set a variable to which row I want the data to go for example the first time I run the bot it goes in row 0 The next time I run the bot I want the data to be saved in row 1What happens is that when I run it the second time it correctly puts the data in row 1 but it erases the data from the first run My goal is to collect all this data over a period of time and repurpose it.Since it may be hours or days between runs, adding the data to a list wont work. On second though a light bulb went off but I don't know how to implement it. maybe I could take the results of run 1 and run 2 and add them to a third list Any thoughts? Quote Link to post Share on other sites
UBotBuddy 331 Posted December 22, 2010 Report Share Posted December 22, 2010 As to why your table is not working it is hard to second guess that since we cannot see the code. If you want to PM me the code then I can take a looksee. Your idea about the List sounds doable. This is one of those times I wish we had a Append to list command (it might be on the todo but I do not know for sure). I say give it a try. Quote Link to post Share on other sites
Cornerstone 0 Posted December 22, 2010 Author Report Share Posted December 22, 2010 The table function works properly. It's just I cant append new data to it then next time I run the bot. I'll tinker with adding the output to a list and combine it with the new data and see how it goes Thanks for your help Quote Link to post Share on other sites
Cornerstone 0 Posted December 23, 2010 Author Report Share Posted December 23, 2010 Ok I figured out how to add the tables together as a list and it will create a new csv file The problem is that when it adds the content of the first and second file it creates a empty row between them like this row o contentrow 1 emptyrow 2 content I included a quck sample of how I laid it out Quote Link to post Share on other sites
Cornerstone 0 Posted December 23, 2010 Author Report Share Posted December 23, 2010 sorry here is the sampletestbot.ubot Quote Link to post Share on other sites
HarryPotter 9 Posted December 23, 2010 Report Share Posted December 23, 2010 what i do is i add data.csv to list 1 (list from file) this is assigned to a variable then i do all the "stuff" i need to do at the end i just add to list to the same variable (seperated by comma) lastly save to file... actually i save it back to the same data.csv so it keeps updating my file Quote Link to post Share on other sites
Cornerstone 0 Posted December 23, 2010 Author Report Share Posted December 23, 2010 That sounds doableI also experimented sending in back to the original file. How do you delete the extra row the second time you run the bot or is this how you do it Quote Link to post Share on other sites
HarryPotter 9 Posted December 25, 2010 Report Share Posted December 25, 2010 sorry, didn't catch what you are asking. extra row? Quote Link to post Share on other sites
Cornerstone 0 Posted December 25, 2010 Author Report Share Posted December 25, 2010 when I add two list together it produces a space between the list like below data1data1data1 data2data2data2 Quote Link to post Share on other sites
pftg4 102 Posted December 25, 2010 Report Share Posted December 25, 2010 are you sure your first list does not have a new line at the end of it ???????? Pftg4 Quote Link to post Share on other sites
HarryPotter 9 Posted December 26, 2010 Report Share Posted December 26, 2010 actually, i think i got that problem before... but i don't know how to reproduce it 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.