Manuel 1 Posted December 27, 2009 Report Share Posted December 27, 2009 Does anybody knows how to load a text or csv file and save each comma separated values into an own variable? Thanks for any help though Quote Link to post Share on other sites
Manuel 1 Posted December 28, 2009 Author Report Share Posted December 28, 2009 Nobody, comeon you uBot freaks Quote Link to post Share on other sites
Hellrot 0 Posted December 29, 2009 Report Share Posted December 29, 2009 I'm struggling with this same issue, any insight on this would be great! Quote Link to post Share on other sites
Aaron Nimocks 19 Posted December 29, 2009 Report Share Posted December 29, 2009 Into it's own variable or into a list? If your talking about a CSV with 100 items and making 100 variables there is an easier way to do it. Quote Link to post Share on other sites
Hellrot 0 Posted December 29, 2009 Report Share Posted December 29, 2009 Into it's own variable or into a list? If your talking about a CSV with 100 items and making 100 variables there is an easier way to do it.I may be going about this the wrong way then... what I'm doing (can't speak for Manuel) is loading a csv into a list, setting list position and then I need to load each piece of information on the row of that list position into separate variables. I am only managing to load the entire row in to the variable. Quote Link to post Share on other sites
Aaron Nimocks 19 Posted December 29, 2009 Report Share Posted December 29, 2009 Anyway to share the code or exactly what you are trying to do? Hard to visualize. Quote Link to post Share on other sites
Hellrot 0 Posted December 29, 2009 Report Share Posted December 29, 2009 bah, screen cap isn't working. I've made a bot to create emails and then save the account info to a CSV. I now am trying to create a bot that creates an account on a separate website using the information from the CSV. So for example, when I try and set the username on the registration page the bot adds something like this to the text box: "firstname, lastname, emailaddress...etc" Thus the need to split the row contents in to separate variables to fill the form out correctly. Quote Link to post Share on other sites
Hellrot 0 Posted December 29, 2009 Report Share Posted December 29, 2009 This is what I've come up with: http://imgur.com/mpTZg.jpghttp://imgur.com/AKLtQ.jpg(the last file save, was just for my testing)Seems to be doing what I need. Quote Link to post Share on other sites
Manuel 1 Posted January 3, 2010 Author Report Share Posted January 3, 2010 @Aaron: I am currently trying to do something similar like you did in your latest bot I have a bunch of lines in my txt like: url,user,password and want to login - do something and go to the next blog, login and do something and so on... Quote Link to post Share on other sites
Aaron Nimocks 19 Posted January 3, 2010 Report Share Posted January 3, 2010 @Aaron: I am currently trying to do something similar like you did in your latest bot I have a bunch of lines in my txt like: url,user,password and want to login - do something and go to the next blog, login and do something and so on... I have the .ubot on that page if you just want to steal it and use it. Probably easier. Quote Link to post Share on other sites
Confuscius 1 Posted January 3, 2010 Report Share Posted January 3, 2010 http://vimeo.com/7891497 - just use the method illustrated. I have a csv of WP logins and a bot routine that simply visits each blog in turn to do some maintenance, the only difference being that I always '|' seperate my data to save messing with so many ',' replaces in data! 1 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.