A simply reddit comment scraper using Puppeteer & google-spreadsheet it returns all comments sorted by points in a spreadsheet
- Install packages
npm install
- Request gsheet
credentials.json
following this doc - Create a spreadsheet and get its ID (check link), then paste it in an
.env
file following.env-example
sample
- Paste in
const urls
eachold.reddit
thread link - run
npm run start
You can switch between headless and headfull just by changing headless: true
in puppeteer.launch({})
options