···234234235235You can request an archive of your Twitter data by [following these instructions](https://help.twitter.com/en/managing-your-account/how-to-download-your-twitter-archive).
236236237237-Twitter will send you a link to download a `.zip` file. You can import the contents of that file into a set of tables in a new database file called `archive.db` (each table beginning with the `archive-` prefix) using the `import` command:
237237+Twitter will send you a link to download a `.zip` file. You can import the contents of that file into a set of tables in a new database file called `archive.db` (each table beginning with the `archive_` prefix) using the `import` command:
238238239239 $ twitter-to-sqlite import archive.db ~/Downloads/twitter-2019-06-25-b31f2.zip
240240241241This command does not populate any of the regular tables, since Twitter's export data does not exactly match the schema returned by the Twitter API.
242242243243-It will delete and recreate all of your `archive-*` tables every time you run it. If this is not what you want, run the command against a new SQLite database file name rather than running it against one that already exists.
243243+It will delete and recreate all of your `archive_*` tables every time you run it. If this is not what you want, run the command against a new SQLite database file name rather than running it against one that already exists.
244244245245You may want to use other commands to populate tables based on data from the archive. For example, to retrieve full API versions of each of the tweets you have favourited in your archive, you could run the following:
246246247247 $ twitter-to-sqlite statuses-lookup archive.db \
248248- --sql='select tweetId from [archive-like]' \
248248+ --sql='select tweetId from archive_like' \
249249 --skip-existing
250250251251## Design notes