Heroku recently announced the end of its free plan offerings.
https://blog.heroku.com/next-chapter
This app is running on Heroku Free dyno, but I decided to terminate this app after Heroku's announcement 😭
- I have no plans to migrate this app from Heroku to another platform. This app is OSS so you can fork it and make it work on another platform
- This app will continue to run until Heroku stops this. (Probably November 28, 2022 or later)
Thank you.
Search specific tweet and post toot to mastodon
- Search specific tweet
- Using Search API https://dev.twitter.com/rest/public/search
- Post toot to specific Mastodon instance
- When tweet contains media (e.g. photo, animation gif), download from twitter and upload mastodon
- Supports Deploy to Heroku (1 click deploy 😤)
Read GETTING_STARTED.md
You can run rake tasks on heroku via heroku cli
e.g.
- Local:
bundle exec rake perform
- Heroku:
heroku run rake perform
Search specific tweet and post toot to mastodon
QUERY
: Twitter search query- same to https://twitter.com/search-home
MAX_COUNT
: Max tweet count (default is 10)
Display all since_ids (since_id is cache for each search query)
$ bundle exec rake since_id:display
query='from:sue445 -RT #precure', since_id=869561044380786688
query='from:sue445 -RT', since_id=869557396930088966
Delete specific since_id
QUERY
: Twitter search query
$ QUERY="from:sue445 -RT" bundle exec rake since_id:delete
Deleted query='from:sue445 -RT', since_id=869557396930088966
Delete all since_ids
$ bundle exec rake since_id:delete_all
Deleted query='from:sue445 -RT', since_id=869557396930088966
Deleted query='from:sue445 -RT #precure', since_id=869561044380786688
- Ruby
- Redis
bundle install
cp .env.example .env
vi .env
All available environment variables are here
heroku addons:add heroku-redis
heroku addons:add papertrail
heroku addons:add rollbar
heroku addons:add scheduler
heroku config:add ENVIRONMENT=production
heroku config:add TWITTER_CONSUMER_KEY=XXXXXXXXXXXXXX
heroku config:add TWITTER_CONSUMER_SECRET=XXXXXXXXXXXXXX
heroku config:add TWITTER_ACCESS_TOKEN=XXXXXXXXXXXXXX
heroku config:add TWITTER_ACCESS_TOKEN_SECRET=XXXXXXXXXXXXXX
heroku config:add MASTODON_URL=https://mastodon.example.com
heroku config:add MASTODON_ACCESS_TOKEN=XXXXXXXXXXXXXX