Jump to content
UBot Underground

List's & CSV's - Banging My Head Against A Wall


Recommended Posts

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/?r9xne1c7hei1yom

grrrr.ubot

Link to post
Share on other sites

 

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/?r9xne1c7hei1yom

I 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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...