Daily Note #2

April 22 2024
Archived

I'm working on 4jobsza today, and I needed to set up a small EC2 instance to run a web scraping job.

Ran into an issue when trying to get Puppeteer to work on the new box, and thanks to the help on this gist, I got it working:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
sudo dnf install google-chrome-stable_current_*.rpm -y
sudo dnf install nodejs -y
npm install puppeteer

Turns out that you the quickest way to get all the dependencies that puppeteer needs is to just grab Chromium. Go figure.