This program allows a user to export their own (and others) comments and preserve the context surrounding the comment in JSON format for archiving purposes.
- Install using pip:
pip install archive-reddit-user
. - Follow the setup wizard to create a
config.ini
file. - Run the command:
archive-reddit-user
in your Terminal.
For a more detailed guide checkout this blog post.
--user <reddit_user>
: specify a specific user to archive their comments, no /u/ required.archive-reddit-user --user testusername
--html <directory>
: create a page you can upload anywhere and evne run locally to look through comments.archive-reddit-user --html testusername-comments
--usage
: returns your rate usage (does use one call).
When you first run archive-reddit-user
, you're prompted to enter your client id, client secret (also known as an API key in other services), and credentials to your reddit account. These credentials are stored locally so you don't have to enter them everytime you run the program. You may wonder why it is in plaintext, I wrote something in the wiki for more context.