Form Use
import com.screenscraper.util.form.*;
// To use the form data, it needs to be set in a script run
// "Before file is scraped"
// Get the form from the session (or where ever it is stored)
Form form = session.getVariable("_FORM");
// Call this method to set the values. This includes the URL
// if a URL was found in the form tag when building the form
form.setScrapeableFileParameters(scrapeableFile);
// To use the form data, it needs to be set in a script run
// "Before file is scraped"
// Get the form from the session (or where ever it is stored)
Form form = session.getVariable("_FORM");
// Call this method to set the values. This includes the URL
// if a URL was found in the form tag when building the form
form.setScrapeableFileParameters(scrapeableFile);
samt on 03/02/2016 at 6:41 pm
- Printer-friendly version
- Login or register to post comments