Documentation For Encog 2.x

BotUtil.ExtractFromIndex Method

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

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

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
Index in the string to start searching from.
occurence
What occurence.

Return Value

The contents of the URL that was downloaded.

See Also

BotUtil Class | Encog.Bot Namespace