This is a simple Node.js script that converts a Twitter archive to Markdown files.
- Run
npm install
to install the dependencies. - Unzip your Twitter archive
- Find
tweet.js
in the data folder of your Twitter archive and copy it to the root of this project. - Open
tweet.js
and removewindow.YTD.tweets.part0 =
from the top of the file. - Rename
tweet.js
totweets.json
. - Open
index.js
and change theconfig
object to match your choices. Being sure to change theusername
to your Twitter username. - Run
npm start
to start the script. - If there are any errors, check the console for more information.
After you're done, move the newly created files
to wherever you need. All of the media you'll need to move is in the data/tweets_media
folder.
- By default, this Tweet will save as many tweets as possible.
- If a tweet is in reply to another tweet, it will save the original tweet and the reply as a single file.
- If a tweet is in reply to another but the previous doesn't exist, it'll be added to the retry list.
- If it is not possible to save a tweet, it will be skipped and logged to the output. You may need to manually resolve this.
- x.com links and mentions will be converted to twitter.com links