Skip to content

0xMH/export-saved-reddit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Export Saved Reddit Posts

Exports 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.

Requirements

Installation

First, make sure you have Python 3.x, pip, and git installed on your machine.

Run the following in your command prompt to install:

git clone https://github.com/csu/export-saved-reddit.git
cd export-saved-reddit
pip install -r requirements.txt

To install without git, download the source code from GitHub, extract the archive, and follow the steps above beginning from the second line.

Usage

  1. make a new reddit app from https://www.reddit.com/prefs/apps
  2. In the export-saved-reddit folder, rename the AccountDetails.py.example file to AccountDetails.py.
  3. 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.
  4. 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.

Additional Options

usage: export-saved.py [-h] [-u USERNAME] [-p PASSWORD] [-v] [-up]

Exports saved Reddit posts into a HTML filethat is ready to be imported into
Google Chrome

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        pass in username as argument
  -p PASSWORD, --password PASSWORD
                        pass in password as argument
  -id clientID,--client_id clientID
                        pass in clientID as argument
  -s clientsecret, --client_secret clientsecret
                        pass in client_secret as argument

                         
  -v, --verbose         increase output verbosity
  -up, --upvoted        get upvoted posts instead of saved posts

Updating

To update the script to the latest version, enter the export-saved-reddit folder in your shell/command prompt and enter the following:

git pull

Help

If you have any questions or comments, please open an issue on GitHub or contact me.

About

Export saved Reddit posts into a HTML file for import into Google Chrome.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%