An Automation bot using puppeteer on Gmail.
The bot initially send the emails to own email id to make sure the automation works fine while filtering out the emails. later, the bot filter the emails on the basis of search keyword that needs to be provided while running the bot and get the URL of all the mails and generate the report as html file and display the web page on new tab.
Here's a video which will show the bot in action.
-
Fork the repo and then clone it or download it.
-
First install all dependencies:
# with npm npm install # or with yarn yarn
-
Add a password in
config.js
file.const email = process.argv[2].replace('--email=', ''); const password = ''; // Your gmail password here. const search = process.argv[3].replace('--search=', '');
-
Start script
node index.js --email=YOUR EMAIL HERE --search=FILTER THE EMAILS BY SEARCH TERM