addGETHTTPParameter
void scrapeableFile.addGETHTTPParameter ( String key, String value, int sequence ) (professional and enterprise editions only)
Description
Dynamically adds a GET parameter to the URL of the current scrapeable file. If a parameter with the given sequence already exists, it will be replaced by the one created from this method call. Calling this method is the equivalent in the workbench of adding a parameter under the "Parameters" tab, and designating the type as GET. Once the scraping session is completed the original HTTP parameters (those under the "Parameters" tab in the workbench) will be restored.
Parameters
- key The key portion of the parameter. For example, if the parameter were foo=bar, the key portion would be "foo".
- value The value portion of the parameter. For example, if the parameter were foo=bar, the value portion would be "bar".
- sequence The sequence the parameter (equivalent to the value under the "Sequence" column in the workbench).
Change Log
Version |
Description |
5.5.32a |
Available in Professional and Enterprise editions. |
Examples
Add a GET HTTP parameter to a scrapeable file
scrapeableFile.addGETHTTPParameter( "searchTerm", "LP player", 3 );