I use the EXTRACT command and get the message "Extraction anchor not found". What is the solution?
Top  Previous  Next

Q: I use the EXTRACT command and get the message "Extraction anchor not found". What is the solution?

A: The reason for this message is, that the extraction anchor, given mainly by the
ATTR parameter of the EXTRACT command could not be found on the currently active web site. Some tips on creating good extraction anchors:

Make sure that you selected the appropriate part for the anchor. It should only contain HTML code that does not change during each session or the changing parts need to be replaced by the wildcard
*.

Incorrect: This anchor does not work because it contains a changing value (the dollar amount).
EXTRACT POS=12 TYPE=TXT ATTR=<TD>Price US$ 3.50</TD><TD>*

Correct: Replaced changing part with asterisk *
EXTRACT POS=12 TYPE=TXT ATTR=<TD>*</TD><TD>*

To test your anchor, please make sure you click on test_tag after iMacros suggests an anchor element or you have manually created one. Most extraction issues are detected with the test feature.

Experiment with the
POS attribute. POS indicates how often the anchor is found on a web page before the extraction is started.

If the information you want to extract is inside a framed web site, you need to click inside the frame that contains the information you want to extract before opening the Extraction Wizard. This generates the
FRAME command and marks the frame as active for the extraction.




Page URL http://www.iopus.com/imacros/help/faq_extraction_anchor.htm