disable image scraping

due to being IP flagged
This commit is contained in:
buzz-lightsnack-2007 2024-05-25 10:05:44 +08:00
parent 00c0069fa9
commit 349d16b06d

View file

@ -155,12 +155,16 @@ export default class scraper {
/*
Scrape the images from a page.
It's temporarily disabled due to consequent flagging of the IP address. Also it's output is not yet implemented. This is a future point of expansion (Crit E).
@param {Object} fields the fields to scrape
@param {Object} options the options
@return {Object} the blob of the images
*/
async getImages(fields, options) {
let DISABLE = true // This is how to disable it
if (!DISABLE) {
let CONTENT;
/*
@ -285,4 +289,5 @@ export default class scraper {
: false;
return (CONTENT);
}
}
}