https://github.com/linux08/puppeteer-tut
Getting started with puppeteer
https://github.com/linux08/puppeteer-tut
cron-jobs express node-mailer nodejs puppeteer web-scraper
Last synced: 11 months ago
JSON representation
Getting started with puppeteer
- Host: GitHub
- URL: https://github.com/linux08/puppeteer-tut
- Owner: linux08
- Created: 2018-11-20T09:08:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T15:32:00.000Z (over 7 years ago)
- Last Synced: 2025-04-12T13:36:30.938Z (about 1 year ago)
- Topics: cron-jobs, express, node-mailer, nodejs, puppeteer, web-scraper
- Language: JavaScript
- Homepage:
- Size: 966 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Link to article: [here](https://medium.com/@holy_abimz/exploring-the-power-of-puppeteer-903a1c8c137b)
Setting up
## Ensure you have Node.js installed on your machine if not download
## To get started
* clone the repository
* cd into the project
* install dependencies
``` npm i ```
* run the code
```npm start ```
# Features
-Get a web page to pdf and send to your email address
- get screenshot of a web page
-scrape twitter
-Get daily update of news from ycombinator to your email address
set heroku environment variables from command line ```heroku config:set $(cat .env)```
Add the puppeteer heroku buildpack: ```heroku buildpacks:add https://github.com/jontewks/puppeteer-heroku-buildpack```
BASE URL : https://puppeteer-demo1.herokuapp.com/
Get all the trending tweet relating to nigeria :
https://puppeteer-demo1.herokuapp.com/scrape-twitter?search=nigeria
to use the above endpoint change nigeria to whatever you want.