iMacros Question

Discussion in 'Black Hat SEO' started by Kontroller, Aug 31, 2011.

  1. Kontroller

    Kontroller Newbie

    Joined:
    Jul 5, 2011
    Messages:
    29
    Likes Received:
    0
    I'm trying to run an iMacros script that will do the following.
    Search the HTML of a webpage looking for a keyword in span tags. If the keyword is found click on it, if not then repeat the process.
    This is the code I have :
    Code:
    VERSION BUILD=7300701 RECORDER=FX
    TAB T=1
    CMDLINE !DATASOURCE file2.csv
    SET !DATASOURCE_COLUMNS 1
    SET !LOOP 1
    SET !DATASOURCE_LINE {{!LOOP}}
    URL GOTO={{!COL1}}
    TAG POS=1 TYPE=SPAN ATTR=TXT:*Word*
    SET !ERRORIGNORE YES
    
    I thought it would only click on things with this code : <span>Word</span>
    However it seems like its only the first span tag that matters meaning these get clicked on too : <span>Word3</span> and so on.

    How can i get around this?

    Thanks
     
  2. ekoee

    ekoee Junior Member

    Joined:
    Jun 2, 2011
    Messages:
    125
    Likes Received:
    39
    Occupation:
    Web designer
    Location:
    London
    Remove the '*' before and after the keyword.
     
  3. Kontroller

    Kontroller Newbie

    Joined:
    Jul 5, 2011
    Messages:
    29
    Likes Received:
    0
    Haha genius. Thanks bro :)