ruby-app-tweetmap

Simple Ruby app to read Twitter stream and map geo-tweets on a Google Map.

  • 所有者: xdevplatform/ruby-app-tweetmap
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

sample-ruby-app

Sample Ruby App that consumes and from the Twitter Streaming API,
displaying the data on a map and streaming the tweets in a pauseable timeline.

Demo

Check out a live demo of the app here: http://twitterdevdemo.com/map

Censor Stream Query Param

Append ?censor=true to attempt filtering out obscene tweets from the stream (no guarantees!).

Requirements

To run this app, you will need the following dependencies:

  • Ruby >= 2.0.0
  • Bundler
  • RVM (optional)

Getting Started

To configure and run this example, do the following:

  • Go to https://apps.twitter.com/ to generate access tokens for your application, any application built on the twitter API requires authentication tokens.

  • Clone this repo or download the code and unzip

  • cd sample-ruby-app

  • Create a file config/twitter.yml and supply your access tokens in this file. You could copy config/example.twitter.yml and simply fill it in with your access tokens:

cp config/example.twitter.yml config/twitter.yml

    development:
      #API key/secret
      consumer_key: API_KEY
      consumer_secret: API_SECRET
      #Access token/secret
      access_token: ACCESS_TOKEN
      access_token_secret: ACCESS_TOKEN_SECRET
  • If on OSX and using homebrew, you may need brew link autoconf if it has not been linked already

  • bundle install

  • bundle exec ruby app.rb [OPTIONS]

  • Open http://localhost:8181/map

Options

    Available options:
        -s, --server SERVER              Server to run
            --host HOST                  Host to run on
        -p, --port PORT                  Server port
        -h, --help                       Show this message

主要指標

概覽
名稱與所有者xdevplatform/ruby-app-tweetmap
主編程語言Ruby
編程語言Ruby (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2014-05-20 20:27:28
推送於2015-09-16 09:30:59
最后一次提交2014-12-17 10:19:45
發布數0
用户参与
星數38
關注者數14
派生數18
提交數65
已啟用問題?
問題數2
打開的問題數2
拉請求數0
打開的拉請求數1
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?