Documentation for smfGetTagContent() function


Description

    An experimental (i.e. it might change) function that extracts the content from a specified HTML tag from the source code of a web page.

Syntax

    =smfGetTagContent( URL, Tag, Tag#, [Find1], [Find2], [Find3], [Find4], [Convert], [ErrorMsg], [Type] )

Parameters

    
URL = Web page to retrieve the HTML tag content from.

Tag = The type of tag to retrieve content from -- "table", "td", "li", "span", etc.

Tag# = The number of tags to skip backward or forward, after function is positioned on the page by "Find1" thru "Find4", before returning data.

Find1 = An optional string value to search for to position the function on the page before skipping backward or forward to find the data to return. Defaults to "<", which should position you at the top of the document.

Find2 = An optional string value to search for to further position the function on the page (after finding the "Find1" string) before skipping backword or forward to find the data to return. Defaults to " ".

Find3 = An optional string value to search for to further position the function on the page (after finding the "Find1" thru "Find2" strings) before skipping backward or forward to find the data to return. Defaults to " ".

Find4 = An optional string value to search for to further position the function on the page (after finding the "Find1" thru "Find3" strings) before skipping backward or forward to find the data to return. Defaults to " ".

Convert = An indicator of whether the data found within the tag should be converted or parsed. Unused at this time. Defaults to 0.

ErrorMsg = An optional value to return if the table cell cannot be found based on specified parameters. Defaults to "Error".

Type = An optional integer value to determine the type of Internet request to make. Defaults to 0. For now, other values are experimental:

0 = XMLHTTP "Get" Request
1 = IE Object Request
2 = HTMLDocument Request
3 = XMLHTTP "Post" Request
4 = WinHttpRequest.5.1 "Get" Request (for Yahoo urls that require a "crumb" value)

Examples Usage notes