HtmlExtract
Sub HtmlExtract($htmlSource As String, $checkUrl As String, $option As Integer) As String
Extracts the specified information from the HTML source code $htmlSource.
The parameter $checkUrl specifies the address of the related page and is required to generate absolute link addresses.
Parameters
- $htmlSource ... HTML source code of the checked page.
- $checkUrl ... URL of the checked page. Required to generate absolute link addresses.
- $option ... Integer value. Specifies which information is extracted.
Valid values of $option
- 0 ... Extracts all link addresses, one URL per line.
The result is sorted and does not contain duplicates. URLs are separated by a carriage return/line feed. - 1 ... Extracts all image addresses, one URL per line.
The result is sorted and does not contain duplicates. URLs are separated by a carriage return/line feed.
Example:
Dim $sUrlList
$sUrlList = HtmlExtract($sMemWeb, Bookmark_GetProperty("check_url"), 0)