Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs

This time we *are* getting puppeteer


This time puppeteer is going to save

Hello everyone! Just yesterday I installed node.js locally on my computer for some Heroku business: which also ultimately caused the empty repl project! Today, we are going to be going above that. WE are going to use puppeteer! Before, you had to go to pygame and use webbot. Now we are going to use bash, and use puppeteer which is way better because you are using node.js.


npm init

Fill in questionnaire and you should have a package.json

npm install puppeteer --save

This is where we get puppeteer.

npm install puppeteer --save && npm start

JK this is how we do the real stuff. We install then run.

const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ headless: false, args: ['--no-sandbox', '--disable-setuid-sandbox'] }); const page = await browser.newPage(); page.goto(""); // More commands here... /* You may view the docs at: And more magic at: Github: */ // await browser.close(); })();

Real easy here, you just do the stuff. Notice on line 4. These args are absolutely necessary due to some restrictions set out by I think this is the reason for --no-sandbox because if you leave that out, you get some cryptic errors.


Fork and let's unblock some things! may I suggest surviv?

Please vote up if you liked this tutorial of sorts!

Happy unblocking!

Giving credit

This was made entirely by me and you can give credit by putting

// This REPL was made thanks to // Go fork it and check it out!

Some side comments

For embedding, try ?lite=true&outputonly=1

3 years ago
You are viewing a single comment. View All