NOTE: Given recent changes to Twitter Ownership and an upcoming change to the API, it is very likely that this service will not function after 9 Feb 2023.
As of today, 27 Apr 2023, the app is no longer able to function with a free API key. Elon sucks.
Import tweets into a PostgreSQL database for archival purposes.
Keeping the messages safe for review if the original tweets have been deleted, removed, or if the account was made private.
First, you'll need a Twitter API key.
-
Log in and get one.
-
Define the relevant info as ENV vars for the docker container, including the API vars
-
Prepare the DB with the
schema.sql
file provided:psql -f schema.sql
-
Run the docker image.
The docker image will run the python script to get a CSV output, then run the SQL to import the information in to the DB in 15 min intervals.