@@ -13,6 +13,8 @@ jobs:
|
|||||||
uses: https://github.com/actions/setup-node@v3
|
uses: https://github.com/actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '20.18'
|
node-version: '20.18'
|
||||||
|
- run: apt-get install chromium-browser
|
||||||
|
name: Install chromium
|
||||||
- run: npm i
|
- run: npm i
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
- run: node index.mjs
|
- run: node index.mjs
|
||||||
|
|||||||
@@ -16,7 +16,9 @@ const contas = {
|
|||||||
|
|
||||||
async function parseLogRocketBlogHome(conta) {
|
async function parseLogRocketBlogHome(conta) {
|
||||||
// Launch the browser
|
// Launch the browser
|
||||||
const browser = await puppeteer.launch();
|
const browser = await puppeteer.launch({
|
||||||
|
executablePath: "/usr/bin/chromium-browser",
|
||||||
|
});
|
||||||
|
|
||||||
// Open a new tab
|
// Open a new tab
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
|
|||||||
Reference in New Issue
Block a user