• Stars
    star
    424
  • Rank 101,664 (Top 3 %)
  • Language
    Python
  • License
    Other
  • Created about 11 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Export Saved Reddit Posts

Build Status Code Coverage

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 to get a client id and a client secret.

    • Scroll to the bottom of the page and click "create app"
    • 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).
    • After creating the app, the client id will appear under the app name while the client secret will be labeled "secret".

  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] [-id CLIENT_ID]
                       [-s CLIENT_SECRET] [-v] [-up] [-all] [-V]

Exports saved Reddit posts into a HTML file that is ready to be imported into
Google Chrome or Firefox

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 CLIENT_ID, --client-id CLIENT_ID
                        pass in client id as argument
  -s CLIENT_SECRET, --client-secret CLIENT_SECRET
                        pass in client secret as argument
  -v, --verbose         increase output verbosity (deprecated; doesn't do
                        anything now)
  -up, --upvoted        get upvoted posts instead of saved posts
  -all, --all           get upvoted, saved, comments and submissions
  -V, --version         get program version.

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.

Contributing

If you would like to contribute, check out the project's open issues. Pull requests are welcome.

More Repositories

1

quora-api

An unofficial API for Quora.
Python
282
star
2

pyquora

A Python module for fetching and parsing data from Quora.
Python
128
star
3

singularity-cms

A simple, flat file, markdown CMS in a single PHP file.
PHP
86
star
4

project-euler-offline

Check solutions for Problem Euler problems while offline.
Python
28
star
5

encryptFS

A simple file system that encrypts files individually.
Python
18
star
6

habits

A lightweight habit tracker with a simple REST API.
Python
18
star
7

pymetacritic

Python API for Metacritic.
Python
17
star
8

pymontecarlo

A small Python library for creating simple Monte Carlo simulations.
Python
16
star
9

todoist-cli

A command line interface for adding tasks to Todoist.
Python
15
star
10

wp-svbtle-cs

A modified version of wp-svbtle.
PHP
15
star
11

ALICEChatAPI

Uses the ALICE AIML to control a chatbot through a REST API on Flask. With speech recognition!
JavaScript
15
star
12

batch_sms

Send large amounts of SMS with the Twilio API.
Python
11
star
13

quora-backup

A syncing approach to backing up Quora content.
Python
10
star
14

Showlist

Review live performances. Won 2nd place at the 2014 Facebook Seattle Regional Hackathon.
HTML
8
star
15

PySteamMarket

Python API for getting prices from the Steam market.
Python
8
star
16

metacritic-api

A REST API for accessing Metacritic data.
Python
7
star
17

gh-streak

A Python library, CLI, and API for fetching GitHub contribution streaks.
Python
6
star
18

Todoist-Tools

Some utility scripts for Todoist
Python
5
star
19

Fitbit-Tools

Calculates sleep debt using sleep records from the Fitbit API
Python
5
star
20

pinboardquick

A Google Chrome extension to bookmark pages to Pinboard without dialogues or pop ups.
JavaScript
5
star
21

verification-bot

Verifies users through a Google Form, applies flair, and performs moderation tasks on submissions and comments.
Python
4
star
22

Reddit-Tools

A collection of small utilities and scripts for Reddit.
Python
4
star
23

modapi

A modular API framework in Python.
Python
4
star
24

scrape

Quickly scrape web pages from the command line.
Go
4
star
25

Instagram-Tools

Various utility scripts for Instagram.
Python
4
star
26

progress

An app for maintaining weekly snippets of progress.
Python
4
star
27

Facebook-Tools

Small tools and scripts that utilize the Facebook Graph API.
PHP
3
star
28

PySpotifyControl

A Python module to control Spotify for Mac using AppleScripts through Python.
Python
3
star
29

twitbot

A framework for building modular Twitter bots.
Python
3
star
30

netviz

A tool for visualizing real-time network/graph data.
JavaScript
3
star
31

logrus_socketio

A Logrus hook to send entries over Socket.IO.
Go
3
star
32

twitbot-img

A twitbot module to return images depending on keywords.
Python
3
star
33

archivist

A bot for managing Slack chat history archives.
Python
2
star
34

elo

Calculate Elo ratings for players given match data.
Python
2
star
35

Tumblr-Tools

Tools for Tumblr using the v2 API.
Python
2
star
36

logs.tf-scraper

Libraries and utilities for scraping (one-off and real-time) Logs.tf data.
Python
2
star
37

flask-templates

Templates for Flask applications.
HTML
2
star
38

PySpotifyControlAPI

A REST API and web app to control Spotify for Mac.
HTML
2
star
39

Evernote-Tools

Scripts I wrote in AppleScript to work with Evernote for Mac.
2
star
40

Rendezvous-iOS

The iOS app for Rendezvous.
Objective-C
2
star
41

convey

A serverless gateway to an Elasticsearch instance.
JavaScript
2
star
42

TabClock

A Safari extension that displays a fancy clock when a new tab is opened.
HTML
2
star
43

log-server

Collect and display logs by streaming them through websockets.
JavaScript
1
star
44

housemates

A web app to help find housemates to live with. Made to learn Express/Node.js.
JavaScript
1
star
45

jira-cli

A lightweight command line interface for JIRA.
Python
1
star
46

Last.fm-Tools

Tools for Last.fm.
Python
1
star
47

SongQueue

A web app to add and vote on songs and then play them in order by score.
JavaScript
1
star
48

pynotify

A Python library for sending notifications.
Python
1
star
49

photo-v1

A static photo website generated with Jekyll.
CSS
1
star
50

modapi-todoist

A Todoist module for modapi.
Python
1
star
51

product-prompt-legacy

Get prompts to practice product design.
HTML
1
star
52

applescript.dart

A library for executing AppleScript in Dart.
Dart
1
star
53

Instachart

Quickly make and share charts from data.
JavaScript
1
star
54

CatalystRobotics

Concordia International School Catalyst FIRST Tech Challenge (FTC) team's code.
C
1
star
55

dashing-widgets

Some custom jobs and widgets for Dashing.
Ruby
1
star
56

IdeaDB

A database and API for saving and accessing ideas. Made to learn Flask.
Python
1
star
57

WordPress-Plugins

Various WordPress plugins. Also available on the WP Plugin Directory.
PHP
1
star
58

open-hunt-api

An unofficial API for Open Hunt.
Python
1
star
59

TabHomePage

A Safari extension to set a home page for new tabs (separate from the new window home page).
HTML
1
star
60

jira-secure-cal

A web service to generate and securely access iCal calendar subscriptions from JIRA.
Python
1
star
61

quora-scripts

A collection of small scripts for Quora.
HTML
1
star
62

filescraper

Scrapes a web page and downloads all linked files of specified file types.
Python
1
star