bridges rss with twitter or even with generic commands

Umputun 2be741bd28 add compose build from source 5 سال پیش
app dc55052b0f fix compose names, add example with hashtag 5 سال پیش
vendor 3be483cb7a working but primitive 5 سال پیش
.gitignore 841e8fe748 Initial commit 5 سال پیش
.travis.yml 6b6a3f9d63 clean version num 5 سال پیش
Dockerfile dc55052b0f fix compose names, add example with hashtag 5 سال پیش
Gopkg.lock 3be483cb7a working but primitive 5 سال پیش
Gopkg.toml 8fd7c3894e init 5 سال پیش
LICENSE 841e8fe748 Initial commit 5 سال پیش
README.md 5660d02186 typo 5 سال پیش
docker-compose.yml 2be741bd28 add compose build from source 5 سال پیش

README.md

rss2twitter Build Status Docker Automated build

The service publishes RSS updates to twitter. The reason is simple - I needed self-hosted thingy to post twits on feed change for my sites (podcasts and blogs). Tried several "cloud services" for this and lately switched to IFTTT. It worked, but slow and unreliable. Sometimes it took hours to get twit posted, sometimes I had to trigger it manually. In addition IFTTT can't have multiple twitter accounts defined for the same IFTTT account and I had to deal with multiple IFTTT accounts just to post to different twitter's timelines.

Install

Use provided docker-compose.yml and change FEED value. All twiter-api credentials can be retrieved from https://developer.twitter.com/en/apps and should be set in environment or directly in the compose file.

Parameters

Application Options:
  -r, --refresh=         refresh interval (default: 30s) [$REFRESH]
  -t, --timeout=         twitter timeout (default: 5s) [$TIMEOUT]
  -f, --feed=            rss feed url [$FEED]
      --consumer-key=    twitter consumer key [$TWI_CONSUMER_KEY]
      --consumer-secret= twitter consumer secret [$TWI_CONSUMER_SECRET]
      --access-token=    twitter access token [$TWI_ACCESS_TOKEN]
      --access-secret=   twitter access secret [$TWI_ACCESS_SECRET]
      --template=        twitter message template (default: {{.Title}} - {{.Link}}) [$TEMPLATE]
      --dry              dry mode [$DRY]
      --dbg              debug mode [$DEBUG]