Git Product home page Git Product logo

twiller's Introduction

twiller

Get someone's tweets texted to your phone on a daily basis. Uses Twilio and Twitter APIs. I personally use Heroku Scheduler to periodically run the scripts and send me the digest, but you can also set up a cron job like I have in this master branch. You can check out the other branch for info on how I used Heroku.

Use

You need to sign up for both the Twitter and Twilio APIs. From Twilio, you will get an SID, an Auth Token, and a phone number. From Twitter you will get a consumer key and a consumer secret. I set up a dummy config.js file which I use to read in these variables - please supplant them with your own. There's also a field for TO_PHONE, which the phone number you want the tweets to be texted to. In my case, it was my phone number.

Steps:

git clone [email protected]:ShivanKaul/twiller.git
cd twiller
<modify config.js with your own SID/AuthToken/PhoneNumbers>
npm install

node js/getTweets.js <Twitter handle you want to follow>

twiller's People

Contributors

shivankaul avatar

Watchers

James Cloos avatar  avatar

Forkers

deliverability

twiller's Issues

Logs?

  • I should get into the habit of logging things, instead of just console.logging.

Only get tweets from previous time GET was sent

Meh. The problem with this is that Twilio only likes < 1600 chars. It's unlikely a single tweet > 1600 (the API probably truncates it). The smartest thing to do would be to get all tweets since last time, and selectively add them to the Tweets array until we run out of either tweets or character space.

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.