Help with Imacros make an auto post script

Discussion in 'Other Scripting Languages' started by chiaramarina, Jul 22, 2014.

Tags:
  1. chiaramarina

    chiaramarina Newbie

    Joined:
    Nov 10, 2011
    Messages:
    14
    Likes Received:
    0
    I would like navigate a list of url from a text file. And fill each url name,email, comment and url (from spin text file). Can you help me?
     
  2. uncutu

    uncutu Elite Member

    Joined:
    Aug 6, 2010
    Messages:
    1,839
    Likes Received:
    1,007
    Can't help you out with the spintax but somethings better than nothing.

    Your imacro file:
    Code:
    SET !REPLAYSPEED FAST
    SET !ERRORIGNORE YES
    SET !DATASOURCE datasource.csv
    SET !DATASOURCE_COLUMNS 5
    SET !TIMEOUT 45
    TAB T=1
    URL GOTO={{!COL1}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=your-name CONTENT={{!COL2}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=your-email CONTENT={{!COL3}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=your-comment CONTENT={{!COL4}}
    TAG POS=1 TYPE=INPUT:TEXT ATTR=your-url CONTENT={{!COL5}}
    TAG POS=1 TYPE=INPUT:SUBMIT ATTR=ID:submit-button
    
    Your datasource.csv file:
    Code:
    http://link.com/1,name1,email1,comment1,url1
    http://link.com/2,name2,email2,comment2,url2
    http://link.com/3,name3,email3,comment3,url3
    ....