A puppeteer bot that scrapes your workflowy lists and sends you a copy. The bot is deployed on heroku and the frequency of scrapes is set by a custom heroku scheduler.
-
Mailgun is used to send an email with your scraped data, you can signup for a free Mailgun sandbox account here.
From mailgun, you will need both your STMP Login and password. If using the free default options, these credentials will look like the below format. Yes, these are fake!
- Default SMTP Login:
[email protected]
- Default Password:
c0c9sfsdfwetwesdgsdd6f4b48feab0cb
- Default SMTP Login:
-
If you want to deploy to the cloud, there are a number of options each with there own advantages and disadvantages. Check out the puppeteer troubleshooting doc for more details. Heroku is used in this example. To deploy to Heroku you need to download the Heroku CLI. Note: If you do not wish to deploy your bot you could set up a local cron or anacron job.
git clone [email protected]:EndaMolloy/workflowy-backup-bot.git
npm install
Create new Heroku bot:
heroku create YOURAPPNAME
Add the puppeteer heroku buildpack (Note: The node version is specified in package.json so the node buildpack gets added automatically):
https://github.com/jontewks/puppeteer-heroku-buildpack.git
Deploy to Heroku:
git push heroku master
Your bot should now be sucessfully deployed and hopefully both Node and Chrome frameworks show up in your bot settings on the Heroku dashboard
Finally, this is a bot not a web app, you need to make some changes to the default dyno settings under the resources tab. Disable the web process and enable the clock process.
That's it, you should now have a working puppeteer bot.