disable image scraping
due to being IP flagged
This commit is contained in:
		
							parent
							
								
									00c0069fa9
								
							
						
					
					
						commit
						349d16b06d
					
				
					 1 changed files with 117 additions and 112 deletions
				
			
		|  | @ -155,12 +155,16 @@ export default class scraper { | ||||||
| 
 | 
 | ||||||
| 	/* | 	/* | ||||||
| 	Scrape the images from a page. | 	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} fields the fields to scrape | ||||||
| 	@param {Object} options the options | 	@param {Object} options the options | ||||||
| 	@return {Object} the blob of the images | 	@return {Object} the blob of the images | ||||||
| 	*/ | 	*/ | ||||||
| 	async getImages(fields, options) { | 	async getImages(fields, options) { | ||||||
|  | 		let DISABLE = true // This is how to disable it
 | ||||||
|  | 
 | ||||||
|  | 		if (!DISABLE) { | ||||||
| 			let CONTENT; | 			let CONTENT; | ||||||
| 
 | 
 | ||||||
| 			/* | 			/* | ||||||
|  | @ -285,4 +289,5 @@ export default class scraper { | ||||||
| 				: false; | 				: false; | ||||||
| 			return (CONTENT); | 			return (CONTENT); | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
| } | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue