Import Twitter/X Archive
Prepare the archive
Section titled “Prepare the archive”- Request your archive from Twitter and unzip it.
 - Locate 
data/tweets.jsand remove the JavaScript assignment to get pure JSON. 
Run the import
Section titled “Run the import”otso import twitter --archive ~/Downloads/twitterMapping
Section titled “Mapping”- Tweets → 
note - Retweets → 
repost - Favorites → 
like - Media URLs are resolved and downloaded.
 
Rate limits
Section titled “Rate limits”If using the API, supply TWITTER_BEARER_TOKEN. Otso respects rate limit headers and retries with backoff.