Search code examples
imacros

Imacros, search source


I am not expert on imacros search source command, I tried to looking some text on the source page to be extracted..

<div id='keywordsDiv' name='keywordsDiv' class='r-sidebar'>
            <dl class="list normal-text">
                       <dt class="key">Category</dt>
         <dd class="value"><a class="black" href="http://www.abcd">abcd</a>                 &nbsp;</dd>
                     <dt class="key">Style</dt>
         <dd class="value"><a class="black" href="http://www.def.com/">def</a>&nbsp;</dd>
                     <dt class="key">Location</dt>
    <dd class="value"><a class="black" href="http://www.ghi.com/">GHI</a>&nbsp;</dd>
                             <dt class="key">Keywords</dt>
              <dd class="value">
   </dd>
           </dl>
                </div>

How can I extract from source a text from div id=keywordsDiv.

Thank you


Solution

  • TAG POS=1 TYPE=DIV ATTR=ID:keywordsDiv EXTRACT=TXT
    

    Try this.