{"id":19700190,"url":"https://github.com/dbeley/reddit_export_userdata","last_synced_at":"2025-04-29T13:31:41.651Z","repository":{"id":98542473,"uuid":"288035334","full_name":"dbeley/reddit_export_userdata","owner":"dbeley","description":"Export userdata from your reddit accounts. Submissions, comments, saved, upvoted contents are supported.","archived":false,"fork":false,"pushed_at":"2024-10-31T22:53:10.000Z","size":21,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T23:26:57.235Z","etag":null,"topics":["archivebox","archiving","reddit","reddit-scraper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbeley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-16T22:34:13.000Z","updated_at":"2024-10-31T22:53:14.000Z","dependencies_parsed_at":"2023-03-14T08:30:41.004Z","dependency_job_id":null,"html_url":"https://github.com/dbeley/reddit_export_userdata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Freddit_export_userdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Freddit_export_userdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Freddit_export_userdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Freddit_export_userdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbeley","download_url":"https://codeload.github.com/dbeley/reddit_export_userdata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224175749,"owners_count":17268390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archivebox","archiving","reddit","reddit-scraper"],"created_at":"2024-11-11T21:04:39.494Z","updated_at":"2024-11-11T21:04:40.176Z","avatar_url":"https://github.com/dbeley.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reddit_export_userdata\n\nExport userdata from your reddit accounts.\n\nYou can export all or any of the following:\n- Own comments and submissions\n- Saved comments and submissions\n- Upvoted comments and submissions\n\nFor each one of your accounts, you have to create a reddit script API key and secret API key (see https://www.reddit.com/prefs/apps \u003e new app \u003e script).\n\n## Requirements\n\n- praw\n- pyyaml\n\n## Installation\n\n```\ngit clone https://github.com/dbeley/reddit_export_userdata\ncd reddit_export_userdata\npip install praw pyyaml\npython reddit_export_userdata.py -h\n```\n\n## Configuration\n\nFor configuration, open the `config.example.yaml` file to see an example.\n\n```\n# Rename this file config.yaml.\nusers:\n    # The four following fields are mandatory.\n    - username: username1\n      password : password1\n      client_id : client_id1\n      client_secret : client_secret1\n      # At least one export option has to be set.\n      exports:\n          # Comments made by user.\n          - comments\n          # Submissions made by user.\n          - submissions\n          # Submissions and comments saved by user.\n          - saved\n          # Submissions and comments upvoted by user.\n          - upvoted\n    - username: username2\n      password : password2\n      client_id : client_id2\n      client_secret : client_secret2\n      exports:\n          - saved\noptions:\n    # Each user will have a separate export file.\n    separate_export: true\n    # Will only export list of urls instead of csv files.\n    archivebox_export: true\n```\n\nBy default, the script searches for a `config.yaml` config file in the current folder, but you can use the `-c/--config_file` argument to use another config file.\n\n\n## Run\n\n```\npython reddit_export_userdata.py\n```\n\n## Help\n\n```\npython reddit_export_userdata.py -h\n```\n\n```\nusage: reddit_export_userdata.py [-h] [--debug] [-a] [-s] [-c CONFIG_FILE]\n\nreddit_export_userdata. Exports userdata of one or several reddit accounts.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --debug               Display debugging information.\n  -a, --archivebox_export\n                        Export only urls (old.reddit and www.reddit) in order\n                        to be used by archivebox.\n  -s, --separate_export\n                        Export data in separate files for each reddit users.\n  -c CONFIG_FILE, --config_file CONFIG_FILE\n                        Path to the config file (default: \"config.yaml\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbeley%2Freddit_export_userdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbeley%2Freddit_export_userdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbeley%2Freddit_export_userdata/lists"}