add mac browser path

Ibraheem Saleh 10 months ago
parent d9839f21ea
commit f546fcf3ad

@ -10,6 +10,8 @@ import fs from 'fs';
const url = 'https://www.bestbuy.com/gateway/graphql'; const url = 'https://www.bestbuy.com/gateway/graphql';
const browser_path = 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'; const browser_path = 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe';
// toggle if on Mac!
// const browser_path = '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome';
puppeteer.use(StealthPlugin()); puppeteer.use(StealthPlugin());
puppeteer.use(AnonymizeUAPlugin()); puppeteer.use(AnonymizeUAPlugin());

Loading…
Cancel
Save