This is a Node.js application using Puppeteer for automating the process of logging into a Gmail account and retrieving the number of unread emails.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have Node.js installed on your local machine. This project has been tested with Node.js version 16.9.0.
-
Clone the repository:
git clone https://github.com/your-repository/nodejs-puppeteer-task.git
-
Navigate to the project directory:
cd nodejs-puppeteer-task
-
Rename the
env.example
file to.env
and update the email and password with your own credentials. -
Start the application:
npm start
Upon running the application, you will see an output similar to the following:
nhamonin nodejs-puppeteer-task % npm start > nodejs-puppeteer-task@1.0.0 start > node app.js You have 286 unread emails.
-
That's it! You now have the NodeJS Puppeteer Task set up on your local machine. Feel free to explore and modify the code to suit your needs.
- nhamonin
This project is licensed under the ISC License.