1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I do random pick like this with Imacros

Discussion in 'Other Languages' started by 007, Mar 25, 2011.

  1. 007

    007 Newbie

    Joined:
    Dec 21, 2007
    Messages:
    44
    Likes Received:
    1
    Hi;
    when using loop in your imacros usually the sequence starts from row 1, or 2, and continues data down the csv file on column you called,
    how can I make this differently on other column while the first column sequence stays the same.
    in another way if I have one column of url and one column keywords, I want the imacros start reading from first row of url and output it but when using keywords from 2nd column use it random, in this case I am certain all my anchor text for one url are not same.

    lets say I have csv file containing 30 urls and keywords like this:
    url1,kw1
    url2,kw2
    url3,kw3
    ~~~~
    url30,kw30


    now when your code print data from first column, lets say url1, then you be able to randomly output data from 2nd column, then you will have something like this:
    on 1st. attempt of loop:
    url1,kw26

    on 2nd attempt of loop:
    url2, kw5
    and so on.,

    how can you manipulate this?

    appreciate your help.
     
  2. nice1

    nice1 Regular Member

    Joined:
    Aug 11, 2009
    Messages:
    308
    Likes Received:
    57
    Occupation:
    Money making
    Location:
    Utopia
    I need to know this kind of thing to - any one have any imacros tuts for us - there is 0 documentation
     
  3. GrizzlyAdams

    GrizzlyAdams Regular Member

    Joined:
    Feb 17, 2011
    Messages:
    479
    Likes Received:
    405
    Occupation:
    Freelancer
    Location:
    British Columbia
    best way to go about using this is using two databases, one with the url list and then one with the keywords that you randomized.

    Here, use this website to randomize the list, it's pretty awesome!

    h77p://textmechanic.c0m/Randomize-List.html
     
  4. larryr

    larryr Newbie

    Joined:
    Nov 18, 2010
    Messages:
    1
    Likes Received:
    0
    whats the code for imacros for getting a random row from
    a CSV file ?
     
  5. adsterhome

    adsterhome Regular Member

    Joined:
    Nov 21, 2009
    Messages:
    236
    Likes Received:
    34
    Occupation:
    Fulltime Forex Trader
    You can use the extract function to get a random number from some site (or prefer yours). Then use that number as a line to read in csv data.