Click on "Your account" and then select "Download an archive of your data" .
Click on "More" in the left-hand menu, then select "Settings and privacy" . Download File twitter.7z
Re-enter your password and complete the two-factor authentication (if prompted). Click "Request archive" . Click on "Your account" and then select "Download