imacros go to url from csv

Discussion in 'BlackHat Lounge' started by ThenNowAlways, Apr 10, 2014.

  1. ThenNowAlways

    ThenNowAlways BANNED BANNED

    Joined:
    Jul 23, 2013
    Messages:
    77
    Likes Received:
    10
    Hey BHW i am trying to get my imacros to go to a url that i provide in a CSV file. How do i do this it is driving me crazy!
    I have 20 Urls that are listed in my CSV file and i want it to go to a url, Then run a task, pause then go to the next url and do the same thing. If anyone can give me some quick advice that would be rad!
     
  2. ChapoGuzman

    ChapoGuzman BANNED BANNED

    Joined:
    Jun 7, 2013
    Messages:
    294
    Likes Received:
    187
    here


    Code:
    ' your csv file has to be in the imacros datasources folder
    SET !DATASOURCE URL.csv
    ' set loop is what row you want the macros to start from
    SET !LOOP 125
    ' datasource_columns is how many colums does your csv have
    SET !DATASOURCE_COLUMNS 6
    'keep this like this, trust me
    set !var1 1
    add !var1 {{!loop}}
    SET !DATASOURCE_LINE {{!var1}}
    TAB T=1
    ' change {{!col2}} to what every number your url is in, so if its in colum 4 it will be {{!col4}}
    URL GOTO={{!col2}}
    
    {DO TASK}
    
    PAUSE (note if you pause it wont restart unless you hit continue. If you need it to wait some time just Put WAIT SECONDS=XX
    
    hope this helps, keep grinding and good earnings to ya.
     
    • Thanks Thanks x 2