mirror of
https://github.com/FranP-code/shopping-discord-bot.git
synced 2025-10-13 00:22:44 +00:00
solved puppeter problem in railway
This commit is contained in:
@@ -162,7 +162,9 @@ module.exports = {
|
||||
const pagesWithErrorScrapping = [];
|
||||
for (const countryPage of countryPages) {
|
||||
try {
|
||||
const browser = await puppeteer.launch() ;
|
||||
const browser = await puppeteer.launch({
|
||||
args: ['--no-sandbox'],
|
||||
}) ;
|
||||
const page = await browser.newPage();
|
||||
const searchUrl = countryPage.searchUrl.replace('%S', product);
|
||||
const response = await page.goto(searchUrl, { waitUntil: 'domcontentloaded' });
|
||||
|
||||
Reference in New Issue
Block a user