Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 629 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 629 Bytes

twitter2mastodon

A script to search for mastodon handle in twitter following list (name & bio) and follow them on mastodon.

Usage

Create a twitter app

Go to https://apps.twitter.com/ and create a new app.

Create a mastodon app

Run

./create_mastodon_app.py <mastodon_instance_url>

Declare your twitter and mastodon credentials

Declare the following environment variables:

  • TWITTER_BEARER_TOKEN
  • MASTODON_USERNAME
  • MASTODON_PASSWORD

Run

$ virtualenv -p python3 .venv
$ source .venv/bin/activate.sh
(.venv) $ pip install -r requirements.txt
(.venv) $ ./twitter2mastodon.py