This is super simple, quick & dirty Python script to retrieve all your (recent) tweets, and store them as combined JSON file on your disk.
It's really basic (no lookup/storage of media links, no saving threads, ...).
Get your Twitter App credentials by registering as a developer.
export APP_TOKEN="your bearer token"
Then run with
tw_get_tweets.py -i <your user id>
Note: The user id
is a number, not your @
handle.