|
|
|
@ -9,7 +9,9 @@ import AdblockerPlugin from 'puppeteer-extra-plugin-adblocker';
|
|
|
|
import fs from 'fs';
|
|
|
|
import fs from 'fs';
|
|
|
|
|
|
|
|
|
|
|
|
const url = 'https://www.bestbuy.com/gateway/graphql';
|
|
|
|
const url = 'https://www.bestbuy.com/gateway/graphql';
|
|
|
|
|
|
|
|
// toggle browser for platform.
|
|
|
|
const browser_path = 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe';
|
|
|
|
const browser_path = 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe';
|
|
|
|
|
|
|
|
//const browser_path = '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome';
|
|
|
|
|
|
|
|
|
|
|
|
puppeteer.use(StealthPlugin());
|
|
|
|
puppeteer.use(StealthPlugin());
|
|
|
|
puppeteer.use(AnonymizeUAPlugin());
|
|
|
|
puppeteer.use(AnonymizeUAPlugin());
|
|
|
|
|