Git Product home page Git Product logo

isitstolen's Introduction

What it is

A script that connects to a Twitter Userstream and responds to all tweets that mention the user it's connected as. This script queries BikeIndex.org about the contents of the messages it receives and responds with a short description of the bike and its stolen status using the Twitter REST API.

isitstolen's People

Contributors

adherr avatar sethherr avatar

Stargazers

 avatar Alix Axel avatar Iheanyi Ekechukwu avatar TH avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

sethherr

isitstolen's Issues

send pictures of bikes?

Is this a good idea at all? only for stolen bikes? only for bikes that have non-stock photos?

Parse incoming tweets better

if there is text before and after "@IsItStolen" those substrings should each be searched for, because probably only one of them is the serial. If there are hashtags, this could result in more than two substrings...

respond to tweets we missed on restart

I don't anticipate much downtime, but if we miss a tweet because the script was not running, we should backtrack and reply to recent missed tweets. This requires persistently saving last tweet responded to so we can use the REST API's mentions_timeline with since_id to grab tweets from the past.

Another thing to consider is responding to tweets that happen when the streaming API is down.

Give information about the theft

Like a date and a geocoded location. If we're getting fancy, could use location of tweet at us and location of theft to calculate a distance.

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.