GithubHelp home page GithubHelp logo

mikkeluk / twitter-spark-io Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 124 KB

To monitor Twitter activity and interact with the Spark.io API. The original intended use was to light up my desk when a new follower follows my twitter or to light up the desk when I lose a follower or specific hashtags are mentioned in tweets.

Python 100.00%

twitter-spark-io's Introduction

Readme

This script has been made and intended to be used with a Sparkcore to call the Spark.io API based on Twitter events. This script powers the LED lighting under a glass desk to notify the user when a Twitter event has occured. Eventually the script will be extended to include Zendesk notifications and Gmail Notifications

Requirements

In this repo you will find everything you would need to make it work.

This script uses tweepy for communicating with Twitter. This is the only dependancy aside from Python obviously.

  pip install tweepy

Installation

git clone https://github.com/mikkeluk/Twitter-Spark-io

Specify your Twitter consumer key and consumer secret

consumer_key = "xxxxx"
consumer_secret = "xxxxx"

Specify a valid access token and token secret

access_token= "xxxxx"
access_token_secret = "xxxxx"

MySQL currently used - Specify database settings

db_host_name = "127.0.0.1"
db_host_port = 3306
db_user = "xxx"
db_password = ""
db_db = "xxxxx"

Create table in database

CREATE TABLE `twitter` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `twittercount` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

Notes

Plan on adding Zendesk support and Gmail support, hence the database may seem a little overkill currently.

twitter-spark-io's People

Stargazers

mike_vanderpool avatar

Watchers

James Cloos avatar  avatar

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.