Hello.
Is there any example of the IF command and how we use it?
I want to extract some data IF the header have specific text is possible? if yes how to?
Thank you
example of IF
Re: example of IF
If this is an element on a page, such as a title, you first need to create a selector that selects this element (suppose you call it Header), and then use the following code:
Then just replace [ifAny] with whatever actions extract from the page, such as an extract action:
Code: Select all
Sequence.IfAny
· Select.Header
· [ifAny]
· Sequence.Empty
Code: Select all
Sequence.IfAny
· Select.Header
· extract
header
Select.Header
description
Select.Description
price
Select.Price
· Sequence.Empty
Juan Soldi
The Helium Scraper Team
The Helium Scraper Team