!EXTRACT

From iMacros
Revision as of 16:17, 27 January 2017 by Td (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contains the extraction results.

If in one macro several EXTRACT commands appear then the results are separated by the string [EXTRACT]. This tag is automatically translated into comma when using the SAVEAS TYPE=EXTRACT command.

If complete tables were extracted then adjacent table elements are separated by the string #NEXT# and ends of table rows are delimited by the string #NEWLINE#. These tags are automatically translated into commas and newlines when you use the SAVEAS TYPE=EXTRACT command.

Value iMacros Browser IE Plug-in Firefox Chrome

Extraction result or #EANF# (Extraction Anchor Not Found).

Set By

[X] Internal

[X] SET, ADD

Internal means that the iMacros program itself sets the value of the variable during program run. SET means that the user can set this value via the SET command inside a macro.

Examples

Fill in the value of !EXTRACT into a form field:

TAG .... CONTENT={{!EXTRACT}}  

Copy the extracted data to the clipboard:

SET !CLIPBOARD {{!EXTRACT}}

Reset content of EXTRACT:

SET !EXTRACT NULL 

Add the value of the first CSV column to the extracted result:

ADD !EXTRACT {{!COL1}}

See Also

TAG...EXTRACT, ADD, Web Scraping & Data Extraction, Extract text from dialogs, Demo-Stopwatch, Demo-Extract