/import-tweets-to-mastodon

How to import tweets to mastodon (e.g. https://framapiaf.org )

Primary LanguageJavaScript

How to imports Tweets into Mastodon (e.g. https://framapiaf.org )

Ask twitter for a data export

Go here.

Extract archive and look for tweet.js

Clone this repo and run

git clone git@github.com:FGRibreau/import-tweets-to-mastodon.git
cd import-tweets-to-mastodon
npm install
MASTODON_API_BASEPATH=https://mastodon-instance.com MASTODON_API_KEY=YOUR_TOKEN TWITTER_TWEETJS_FILEPATH=/path/to/tweet.js node import.js

Tips: add the DEBUG=* environment variable for verbose output.

🎉

Need help?

  • This project is open-sourced as is.
  • I won't do support for free.
  • If you really want support please consider sponsoring me 👍