This script connects with your reddit account to extract any saved comments and submissions into an SQLite Database.
Under the hood it uses praw
so if you want to modify this, its docs may be handy.
Note that reddit saves at most 1000 entries for you - when you try to save more, the oldest entries will be deleted.
- Create a reddit app using this form. Select
script
, the other settings don't matter - Clone the repository using
git clone https://github.com/JeftavanderHorst/reddit-save-exporter && cd reddit-save-exporter
- Copy
.env.example
to a new file named.env
and fill in the environment variables - Install the dependencies using
pip install -r requirements.txt
- Run
main.py