Skip to content

EVDOG4LIFE/ATATScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppeteer Sample Function

This Node.js function is designed to check the availability of the LEGO AT-AT product on the official LEGO website using Puppeteer and Chromium. It performs synthetic monitoring by simulating a visit to the product's page and checks the product's availability based on Schema.org data.

Prerequisites

  • An Appwrite server setup and running.
  • A project created in Appwrite with this function added.

Setup Instructions

Step 1: Add the Function to Appwrite

Create a new function in your Appwrite console. Choose the Node.js runtime.

Step 2: Configure Environment Variable

In the function settings in the Appwrite console, add an environment variable:

  • Key: PUPPETEER_EXECUTABLE_PATH
  • Value: /usr/bin/chromium-browser

This variable instructs Puppeteer to use the Chromium browser installed on the server.

Step 3: Modify Build Settings

In the function's Configuration > Build Settings, add the following command:

apk update && apk fetch chromium nss freetype harfbuzz ca-certificates ttf-freefont && npm i

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages