Add chrome path to options.json

This commit is contained in:
PAlexanderFranklin 2024-01-15 17:26:14 -08:00
parent a8bb7a29ec
commit e46ef5daa8
2 changed files with 3 additions and 2 deletions

View File

@ -2,5 +2,6 @@
"uberPhoneNumber": "1234567891", "uberPhoneNumber": "1234567891",
"startDateIso": "2023-01-01", "startDateIso": "2023-01-01",
"endDateIso": "2023-12-31", "endDateIso": "2023-12-31",
"uberPath": "./uberResults.json" "uberPath": "./uberResults.json",
"chromeExecutable": "/usr/bin/chromium"
} }

View File

@ -9,7 +9,7 @@ async function main() {
const browser = await puppeteer.launch({ const browser = await puppeteer.launch({
headless: false, headless: false,
ignoreHTTPSErrors: true, ignoreHTTPSErrors: true,
executablePath: "/usr/bin/chromium", executablePath: options.chromeExecutable ?? "/usr/bin/chromium",
}) })
try { try {
const page = await browser.newPage() const page = await browser.newPage()