twitter-scripts
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Some scripts for doing stuff with Twitter. Kind of a grab-bag of things I think are useful.
=Twitter Scripts
Some Ruby Twitter Scripts I find useful. Most of them use 
Grackle[http://github.com/hayesdavis/grackle]. Some of them use 
Redis[http://code.google.com/p/redis].

==Twitter Client
Each of these scripts uses a Grackle::Client to talk to Twitter. If you want to 
control authentication or other settings for this client you can create a file 
called .twitter_client in the directory from which you run the scripts or in your
user directory. This is a YAML file that include arguments that will be passed 
directly to the Grackle::Client constructor. Example file:
  auth:
    type: :basic
    username: USERNAME
    password: PASSWORD
  ssl: true
  
For more options, see the Grackle::Client[http://github.com/hayesdavis/grackle/blob/master/lib/grackle/client.rb] docs.

==Grackle Setup
  sudo gem install grackle

==Redis Setup
===Quick Start
  $ curl -O http://redis.googlecode.com/files/redis-1.02.tar.gz
  $ tar xzf redis-1.02.tar.gz
  $ cd redis-1.02
  $ make
  $ ./redis-server
 
===Shut it down
telnet 127.0.0.1 6379
type 'SHUTDOWN' and hit return

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。