Raid Script Commands
Script Controllers
CALL <Process Name>
Usage:
Use this command to call a process with process name following the CALL command.
REPEAT_FOR_ALL_LINKS LIST_X <Process Name>
Usage:
This is an extension to the CALL command. This will call the same process repeatedly for all the URL's in URL list specified. (If no list is specified, default list, LIST_1 is used.) List can be specified using LIST_X where X is any number from 1 to 10.
Examples
REPEAT_FOR_ALL_LINKS LIST_2 GetArticle
IF_VAR_CONTAINS "Atext$" <Process Name>
Usage:
If VAR contains a certain string of text, the process mentioned under 2 nd parameter is called.
Examples
VAR = PAGE
IF_VAR_CONTAINS "World" GetTitleMethod1
ELSE_ IF_VAR_CONTAINS "sports" GetTitleMethod2
ELSE_ IF_VAR_CONTAINS "Local" GetTitleMethod3
ELSE_IF_VAR_CONTAINS "Atext$" <Process Name>
Usage:
If VAR contains a certain string of text, the process mentioned under 2 nd parameter is called. This command is applicable only if used after IF_VAR_CONTAINS or IF_VAR_NOT_CONTAINS.
Examples
VAR = PAGE
IF_VAR_CONTAINS "World" GetTitleMethod1
ELSE_ IF_VAR_CONTAINS "sports" GetTitleMethod2
ELSE_ IF_VAR_CONTAINS "Local" GetTitleMethod3
IF_VAR_NOT_CONTAINS "Atext$" <Process Name>
Usage:
If VAR not contains a certain string of text, the process mentioned under 2 nd parameter is called.
Examples
VAR = PAGE
IF_VAR_NOT_CONTAINS "World" GetTitleMethod1
ELSE_ IF_VAR_CONTAINS "sports" GetTitleMethod2
ELSE_ IF_VAR_NOT_CONTAINS "Local" GetTitleMethod3
ELSE_IF_VAR_NOT_CONTAINS "Atext$" <Process Name>
Usage:
If VAR not contains a certain string of text, the process mentioned under 2 nd parameter is called. This command is applicable only if used after IF_VAR_CONTAINS or IF_VAR_NOT_CONTAINS.
Examples
VAR = PAGE
IF_VAR_CONTAINS "World" GetTitleMethod1
ELSE_ IF_VAR_NOT_CONTAINS "sports" GetTitleMethod2
ELSE_ IF_VAR_CONTAINS "Local" GetTitleMethod3
FOLLOW_ON_SEED_VAR <Process Name>
Usage:
This command is useful when the article is spanned over several pages. Get the contents of the PAGE/BODY in to VAR and process it to extract the repeating pattern of the hyperlinks in the page. This repeating pattern is called "Seed" and this is contained in VAR. Use FOLLOW_ON_SEED_VAR command to pass this seed to the script processor. The script processor will call the process mentioned as the first parameter in the command repeated for any number of times the "seed" is found in current page.
Examples
VAR = URL
VAR_REMOVE "http://www.forteantimes.com/articles/"
VAR_REMOVE ".shtml"
VAR_DELETE_AT -1
FOLLOW_ON_SEED_VAR GetArticle
|