Yadabyte
 
 
Writing a Raid Script
 
Definition
 
Processes
 
Raid Script Structure
 
Variables
 
Assigning Article categories
 
Designing and Testing Raid Scripts
 
Raid Script Commands (Comments)
 
Raid Script Commands (Specifiers)
 
Raid Script Commands (Quantifiers)
 
 
Raid Script Commands (Built-in Functions )
 

Raid Script Commands

Quantifiers

Quantifiers allow you to define the scope that is applied to a certain part of the script, such as which links to include or exclude and likewise with images.

 

INCLUDE_ALL_LINKS

Usage:

This quantifying command works applies only to processing the start page. It specifies that every link in the start page should be included in the set of potential articles. If this set of potential articles is not refined by using the EXCLUDE_LINKS command then every link on the start page will be treated as an article.

This command takes precedence over the INCLUDE_LINKS command such that the latter is redundant if INCLUDE_ALL_LINKS is used.

Note:

•  INCLUDE_ALL_LINKS should be the first command you use when writing a Raid Script from scratch because it allows you to see in one run what the link structure of the start page consists of.

 

INCLUDE_ LINKS = "Atext$"

This quantifying command works applies only to processing the start page if INCLUDE_ALL_LINKS has not been used.

The command will add to the set of potential article links any link in the Start page that contains Atext$.

 

EXCLUDE_ LINKS = "Atext$"

This quantifying command will exclude from the set of potential articles any link that contains Atext$. This command

applies to links included by either the INCLUDE_LINKS or the INLCUDE_ALL_LINKS commands.

 

INCLUDE_IMAGES = "Atext$"

Usage:

In most cases the Raid Script will automatically process images from within the article text. However some sites keep images associated with articles in separate parts of the page, eg, In side tables. By using IMAGE_INCLUDE you can specify the criteria for the image(s) that you want to have in the article. These images will be places at the Top of the article page, one by one.

Note:

INCLUDE_IMAGE only operates on text outside of the article page text (Outside of the ARTICLE_START and ARTICLE_END tags) and should only be used to grab image that are not grabbed by default by being within the ARTICLE_START and ARTICLE_END tags.

Examples

INCLUDE_IMAGES= "\images\"

INCLUDE_IMAGES= "big_"

 

EXCLUDE_IMAGES = "Atext$"

Usage:

EXCLUDE_IMAGES tells the Raid Script engine that any image URLS containing Atext$ should not be included as images in the article page text. The images to be excluded are relevant to both images acquired by default 9because they are within the ARTICLE_START and ARTICLE_END tags or because they have been included by the INCLUDE_IMAGES command.

Examples

EXCLUDE_IMAGES= ".gif"

EXCLUDE_IMAGES= "\adverts\"

 

INCLUDE_ALL_IMAGES

Usage:

Raid Script will automatically include all images that are in the article page text, that is between the ARTICLE_START and ARTICLE_END tags. The INCLUDE_ALL_IMAGES tag will tell the Compiler to take every image in the article page, irrespective of where it occurs, and to place those images at the top of the article. These images can then be excluded out using the EXCLUDE_IMAGE command.

In most cases it is unlikely that including all images on the page will be the most efficient way of getting the article image. However the INCLUDE_ALL_IMAGES command is very useful with the TEST_IMAGE_PROCESSING test command if you have having problems with images for a particular site.


 
 | Site Map | Copyright © 2005 Yadabyte. All Rights Reserved. Site by Yadabyte Websites..
Yadabyte