Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tv42/didyouseethis
Retweet anything with certain keywords
https://github.com/tv42/didyouseethis
Last synced: 20 days ago
JSON representation
Retweet anything with certain keywords
- Host: GitHub
- URL: https://github.com/tv42/didyouseethis
- Owner: tv42
- License: mit
- Created: 2013-03-25T20:15:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-10T18:17:01.000Z (about 10 years ago)
- Last Synced: 2024-10-16T02:07:12.230Z (2 months ago)
- Language: Go
- Size: 176 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
didyouseethis -- Retweet anything with certain keywords
=======================================================This service will allow you to run a Twitter bot that retweets
anything matching its criteria. One way of using it would be to have a
protected account retweet things you might be interested in, and then
letting select people follow that protected account.To install, you'll need a working Go setup. Then run:
go get github.com/tv42/didyouseethis/cmd/didyouseethis-save
go get github.com/tv42/didyouseethis/cmd/didyouseethis-retweetAnd now your GOPATH's bin directory should have the commands.
To use, you'll need to register a Twitter app, and put its key in a
YAML config file, along with the keywords you want to track:oauth:
key: KEY_GOES_HERE
secret: SECRET_GOES_HERE
keywords:
- orange juice
- milkFor keywords, each word in a single line has to match; any item
matching means tweet is included.Test them out by running:
mkdir state
didyouseethis-save MY_CONF_FILE.yaml state &
didyouseethis-retweet MY_CONF_FILE.yaml stateOn the first run, you will be asked to authorize the app; once the
authorization is ok, the commands will run in batch mode.The above commands will exit on errors, and expect to be run under a
daemon supervisor that restarts them.You are responsible for following Twitter's policies; there are plenty
of details where didyouseethis does not currently enforce correct
behavior.The code is still uglier than it should be, but hey, it works!