pass the scraper's options to the corresponding function in the scraper module

This commit is contained in:
buzz-lightsnack-2007 2024-05-11 23:18:09 +08:00
parent 2f1e033466
commit a61c54269f

View file

@ -11,8 +11,8 @@ import {URLs} from "/scripts/utils/URLs.js";
export default class processor {
#filter;
async scrape (fields) {
this.product.details = new scraper ((fields) ? fields : this.targets);
async scrape (fields, options) {
this.product.details = new scraper (((fields) ? fields : this.targets), options);
// Read product data and gather the SHA512 hash.
await this.product.read();