Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiote/robotwitter
Automate standard twitter tasks
https://github.com/kiote/robotwitter
Last synced: about 7 hours ago
JSON representation
Automate standard twitter tasks
- Host: GitHub
- URL: https://github.com/kiote/robotwitter
- Owner: kiote
- License: mit
- Created: 2011-04-21T13:05:00.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-04-13T11:14:49.000Z (over 12 years ago)
- Last Synced: 2024-04-25T04:45:03.734Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 225 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE.txt
Awesome Lists containing this project
README
= Robotwitter {}[http://travis-ci.org/kiote/robotwitter]
Robotwitter makes it easer to automate some twitter functions, such as:
* creating tweets
* retweeting by keywords
* follow back who follows you
* unfollow who do not follows you== Usage
* gem install robotwitter
Robotwitter::Path.set_base your_path_to_cofing
client = Robotwitter::Robot.new "settings.yaml", "your_twitter_login", &GETTER
&GETTER could be nil (see below)client.follow_all_back
== Config Example
your_twitter_login:
consumer_key: key
consumer_secret: secret
oauth_token: oauth_token
oauth_token_secret: oauth_token== GETTER
You can use GETTER as a lambda-function to get new tweets from somewhere.
Actually it used to work with external http and sqlite database.
It should be a lambda function wich return stringIf you do not need getter, just set GETTER to nil.
=== Getter example
GETTER = lambda do
return_string_got_it_from_somewhere
end== Copyright
Copyright (c) 2011 Krivich Ekaterina. See LICENSE.txt for
further details.