Giter Site home page Giter Site logo

twittodon's Introduction

NO LONGER MAINTAINED

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.

Twittodon

Search specific tweet and post toot to mastodon

CircleCI Coverage Status

Features

  • Search specific tweet
  • 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 😤)

Deploy

Getting Started

Read GETTING_STARTED.md

Rake tasks

You can run rake tasks on heroku via heroku cli

e.g.

  • Local: bundle exec rake perform
  • Heroku: heroku run rake perform

rake perform

Search specific tweet and post toot to mastodon

Parameters

rake since_id:display

Display all since_ids (since_id is cache for each search query)

Example

$ bundle exec rake since_id:display
query='from:sue445 -RT #precure', since_id=869561044380786688
query='from:sue445 -RT', since_id=869557396930088966

rake since_id:delete

Delete specific since_id

Parameters

  • QUERY : Twitter search query

Example

$ QUERY="from:sue445 -RT" bundle exec rake since_id:delete
Deleted query='from:sue445 -RT', since_id=869557396930088966

rake since_id:delete_all

Delete all since_ids

Example

$ bundle exec rake since_id:delete_all
Deleted query='from:sue445 -RT', since_id=869557396930088966
Deleted query='from:sue445 -RT #precure', since_id=869561044380786688

Requirements

  • Ruby
  • Redis

Development

Setup

bundle install
cp .env.example .env
vi .env

Environment variables

All available environment variables are here

Heroku

Setup

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

twittodon's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar sue445 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

twittodon's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.