!EXTRACT

From iMacros
Jump to navigation Jump to 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 2021.0 Firefox Chrome iMacros Browser

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