void scrapeableFile.setMaxResponseLength ( int maxKBytes ) (professional and enterprise editions only)


Limit the amount of information retrieved by the scrapeable file. This method can be useful in cases of very large responses where the desired information is found in the first portion of the response. It can also help to make the scraping process more efficient by only downloading the needed information.


  • maxKBytes Kilobytes to be downloaded, as an integer.

Return Values

Returns void.

Change Log

Version Description
5.0 Add for professional and enterprise editions.

This method must be called before the file is scraped.


Limit Response Size

 // In script called "Before file is scraped"

 // Only download the first 50 KB

See Also

  • getMaxResponseLength() [scrapeableFile] - Returns the maximum response length that is read by the scrapeable file