Web Scrapers Generator BrowserExt

generateurl

Generates an array of the links according to the pattern for downloading using loadpage.

generateurl(pattern, params)
    

Parameters:

pattern Link pattern string. Parameters, enclosed between {and} are valid.
params Dictionary, that defines the parameters specified in the pattern. Each value of the dictionary can be an array of strings, or a string of the form 'start..end,step', defining the range of numbers. Start - start value, end - the final value, step - step (if not, is 1). For example, '1..10,2'.

Returned value: an array of the links.

The function loops through all the combinations of parameter values and inserts them in the pattern.

Example 1.