add mac browser path

Ibraheem Saleh 12 months ago
parent d9839f21ea
commit 345388fa78

@ -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());

@ -12,6 +12,9 @@ puppeteer.use(
} }
)); ));
// Toggle browser for platform
const browser_path = "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe";
// const browser_path = '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome';
const browser = await puppeteer.launch({ const browser = await puppeteer.launch({
headless: false, headless: false,

Loading…
Cancel
Save