jifro 0 Posted July 19, 2010 Report Share Posted July 19, 2010 Hi, I've been fighting with this for the last few hours, and after many coffees and shouting at the screen I havent got closer to solving the problem! I was wondering if anyone would be so kind as to help out before I throw my computer out of the window (although that would be funny) Anyway what im trying to do is first I have a script that creates accounts at 10 different websites. This outputs a CSV in this format- website,username,password. This was easy enough to do! Next in a seperate script, I would like to load the CSV and login to each site. each site will have its own login sub, Bear in mind, sometimes creating accounts will fail so the CSV file wont always have all 10 sites. To do this I would like ubot to do an if statement on the url in the csv/list- LOOP if url = www.google.com then run sub google.com if url = www.yahoo.com then run sub yahoo.com I just can't get this working, I've tried all sorts of different things, setting list positions, incrementing list position variable and everything you can think of. I've rebuilt the script more times than I can remember and have watched the csv videos over and over. Can anyone cast any light on how to achieve this? I have attached the sample bot and the csv is here http://www.mediafire.com/?r9xne1c7hei1yomgrrrr.ubot Quote Link to post Share on other sites
jifro 0 Posted July 19, 2010 Author Report Share Posted July 19, 2010 Heres an image of the script- http://i26.tinypic.com/2ykddte.jpg Quote Link to post Share on other sites
jifro 0 Posted July 19, 2010 Author Report Share Posted July 19, 2010 I have created a 2nd version to see if this works, although I feel it's closer to working it doesnt Script is attached http://i30.tinypic.com/16868p0.jpggrrrr2.ubot Quote Link to post Share on other sites
KneeOnLite 0 Posted July 19, 2010 Report Share Posted July 19, 2010 I just can't get this working, I've tried all sorts of different things, setting list positions, incrementing list position variable and everything you can think of. I've rebuilt the script more times than I can remember and have watched the csv videos over and over. Can anyone cast any light on how to achieve this? I have attached the sample bot and the csv is here http://www.mediafire.com/?r9xne1c7hei1yomI carnt help but know exactly how you feel just keep at it It looks very close to me, but there agin I know next to nothing. One thing though is that list accountslist actually populated? Good luck. Quote Link to post Share on other sites
Seth Turin 223 Posted July 20, 2010 Report Share Posted July 20, 2010 the problem here is that you're treating a csv as a list. when you load a list into a file like this, it separates the items according to line, which means that the first list item will be: http://www.google.com/,username,password and the second list item will be: http://www.yahoo.com/,domineeringmecc,GRUYGMPQNS the items, the way you define them, are the entire line, when what you really want is just the part before the first comma. the solution is to understand that csvs aren't really lists. we recently added the table feature into ubot, which lets you deal with csvs by letting you specify both the row and column. if you go to http://ubotstudio.com/tutorials, there will be a tutorial on tables that will point you in the right direction. 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.