Documentation For Encog 2.x

BotUtil.Extract Method

This method is very useful for grabbing information from a HTML page.

public static string Extract(
   string str,
   string token1,
   string token2,
   int index
);

Parameters

str
The string to search.
token1
The text, or tag, that comes before the desired text.
token2
The text, or tag, that comes after the desired text.
index
Which occurrence of token1 to use, 1 for the first.

Return Value

The contents of the URL that was downloaded.

See Also

BotUtil Class | Encog.Bot Namespace