Mike Slinn

Connoisseur of Technology

Tweet Stream Manager

2018-01-03 / All Blog posts

I publish multiple tweet streams, so I wrote a Node.js webapp using Express and Pug to help me manage them. This is what the user interface looks like. This is a silent video. Hopefully it makes sense to everyone.

For example, ScalaCourses.com currently has two tweet streams, each with their own schedule (times shown are HH:MM for a 24-hour clock):

  • ScalaCourses – tweets are published at 6:45 every day
  • SaleMore33 – This is a promotional campaign, starting on a certain day/time and ending on another day/time. This stream tweets at 3:24, 9:24, 13:24, 18:24, and 23:24.

crontab, running on a local XUbuntu machine, runs a Node.js command-line app that publishes the tweet streams:

NODE=/usr/bin/node
TWEETER=/var/work/training/projects/tweeter

45 6 * * *              $NODE $TWEETER/index.js $TWEETER/ScalaCourses
24 3,9,13,18,23 * * *   $NODE $TWEETER/index.js $TWEETER/SaleMore33 2018-01-03 2018-01-15

I intend to re-implement the command-line program as an AWS Lambda function one day. Instead of using CSV files for persistence, I'll probably go with Dynamo.


Contact Mike Slinn

Unless you are a recruiter, in which case you should not try to make contact!

  • Email
  • Direct: 514-418-0156
  • Mobile: 650-678-2285

Disclaimer

The content on this web site is provided for general information purposes only and does not constitute legal or other professional advice or an opinion of any kind. Users of this web site are advised to seek specific legal advice by contacting their own legal counsel regarding any specific legal issues. Michael Slinn does not warrant or guarantee the quality, accuracy or completeness of any information on this web site. The articles published on this web site are current as of their original date of publication, but should not be relied upon as accurate, timely or fit for any particular purpose.

Accessing or using this web site does not create a client relationship. Although your use of the web site may facilitate access to or communications with Michael Slinn via e-mail or otherwise via the web site, receipt of any such communications or transmissions does not create a client relationship. Michael Slinn does not guarantee the security or confidentiality of any communications made by e-mail or otherwise through this web site.

This web site may contain links to third party web sites. Monitoring the vast information disseminated and accessible through those links is beyond Michael Slinn's resources and he does not attempt to do so. Links are provided for convenience only and Michael Slinn does not endorse the information contained in linked web sites nor guarantee its accuracy, timeliness or fitness for a particular purpose.


comments powered by Disqus

© 1976-2020, Michael Slinn. All rights reserved.