{"id":13585149,"url":"https://github.com/csu/export-saved-reddit","last_synced_at":"2026-01-17T07:40:36.376Z","repository":{"id":10333856,"uuid":"12465914","full_name":"csu/export-saved-reddit","owner":"csu","description":"Export saved Reddit posts into a HTML file for import into Google Chrome.","archived":false,"fork":false,"pushed_at":"2019-09-29T05:04:18.000Z","size":197,"stargazers_count":433,"open_issues_count":9,"forks_count":35,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-10-31T07:34:36.727Z","etag":null,"topics":["backup","html","python","reddit","script"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-29T16:53:19.000Z","updated_at":"2024-10-13T05:55:36.000Z","dependencies_parsed_at":"2022-09-15T14:14:34.963Z","dependency_job_id":null,"html_url":"https://github.com/csu/export-saved-reddit","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/csu%2Fexport-saved-reddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csu%2Fexport-saved-reddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csu%2Fexport-saved-reddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csu%2Fexport-saved-reddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csu","download_url":"https://codeload.github.com/csu/export-saved-reddit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247607561,"owners_count":20965944,"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":["backup","html","python","reddit","script"],"created_at":"2024-08-01T15:04:46.030Z","updated_at":"2026-01-17T07:40:36.364Z","avatar_url":"https://github.com/csu.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Export Saved Reddit Posts\n\n[![Build Status](https://travis-ci.org/csu/export-saved-reddit.svg?branch=master)](https://travis-ci.org/csu/export-saved-reddit) [![Code Coverage](https://img.shields.io/codecov/c/github/csu/export-saved-reddit.svg)](https://codecov.io/gh/csu/export-saved-reddit)\n\nExports saved and/or upvoted Reddit posts into a HTML file that is ready to be imported into Google Chrome. Sorts items into folders by subreddit.\n\n## Requirements\n* [Python 3.x](https://www.python.org/downloads/)\n* [pip](https://pip.pypa.io/en/stable/installing/)\n* [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) (recommended) \n\n## Installation\nFirst, make sure you have [Python 3.x](https://www.python.org/downloads/), [pip](https://pip.pypa.io/en/stable/installing/), and [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) installed on your machine.\n\nRun the following in your command prompt to install:\n\n    git clone https://github.com/csu/export-saved-reddit.git\n    cd export-saved-reddit\n    pip install -r requirements.txt\n\nTo install without git, [download the source code from GitHub](https://github.com/csu/export-saved-reddit/archive/master.zip), extract the archive, and follow the steps above beginning from the second line.\n\n## Usage\n1. [Make a new Reddit](https://www.reddit.com/prefs/apps) app to get a `client id` and a `client secret`.\n\n    - Scroll to the bottom of the page and click \"create app\"\n    - You can name the app anything (e.g. \"export-saved\"). Select the \"script\" option. Put anything for the redirect URI (e.g. https://christopher.su).\n    - After creating the app, the client id will appear under the app name while the client secret will be labeled \"secret\".\n\n    ![](https://i.imgur.com/zQZUEuB.png)\n\n2. In the `export-saved-reddit` folder, rename the `AccountDetails.py.example` file to `AccountDetails.py`.\n3. Open the `AccountDetails.py` in a text editor and enter your Reddit username, password, client id, client secret within the corresponding quotation marks. Save and close the file.\n4. Back in your shell, run `python export_saved.py` in the `export-saved-reddit` folder. This will run the export, which will create `chrome-bookmarks.html` and `export-saved.csv` files containing your data in the same folder.\n\n### Additional Options\n    usage: export_saved.py [-h] [-u USERNAME] [-p PASSWORD] [-id CLIENT_ID]\n                           [-s CLIENT_SECRET] [-v] [-up] [-all] [-V]\n    \n    Exports saved Reddit posts into a HTML file that is ready to be imported into\n    Google Chrome or Firefox\n    \n    optional arguments:\n      -h, --help            show this help message and exit\n      -u USERNAME, --username USERNAME\n                            pass in username as argument\n      -p PASSWORD, --password PASSWORD\n                            pass in password as argument\n      -id CLIENT_ID, --client-id CLIENT_ID\n                            pass in client id as argument\n      -s CLIENT_SECRET, --client-secret CLIENT_SECRET\n                            pass in client secret as argument\n      -v, --verbose         increase output verbosity (deprecated; doesn't do\n                            anything now)\n      -up, --upvoted        get upvoted posts instead of saved posts\n      -all, --all           get upvoted, saved, comments and submissions\n      -V, --version         get program version.\n\n## Updating\nTo update the script to the latest version, enter the `export-saved-reddit` folder in your shell/command prompt and enter the following:\n\n    git pull\n\n## Help\nIf you have any questions or comments, please [open an issue on GitHub](https://github.com/csu/export-saved-reddit/issues).\n\n## [Contributing](https://github.com/csu/export-saved-reddit/blob/master/CONTRIBUTORS.md)\n\nIf you would like to contribute, check out the project's [open issues](https://github.com/csu/export-saved-reddit/issues). [Pull requests](https://github.com/csu/export-saved-reddit/pulls) are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsu%2Fexport-saved-reddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsu%2Fexport-saved-reddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsu%2Fexport-saved-reddit/lists"}