GithubHelp home page GithubHelp logo

endamolloy / workflowy-backup-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 16 KB

A bot, built using chrome puppeteer, that emails you a copy of your workflowy lists periodically.

JavaScript 100.00%

workflowy-backup-bot's Introduction

workflowy-backup-bot

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.

puppeteer

Getting Started

  • 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
  • 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.

Install

git clone [email protected]:EndaMolloy/workflowy-backup-bot.git

npm install

Deploy

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

Heroku Settings

Your bot should now be sucessfully deployed and hopefully both Node and Chrome frameworks show up in your bot settings on the Heroku dashboard

heroku-screenshot-settings

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.

heroku-screenshot-resources

That's it, you should now have a working puppeteer bot.

workflowy-backup-bot's People

Contributors

endamolloy avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

lockcp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.