Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 2.31 KB

README.md

File metadata and controls

43 lines (33 loc) · 2.31 KB

rchive

A python script to archive your reddit saved/upvoted posts

Getting Started

git clone https://github.com/codsane/rchive.git

Config File

To be used with configparser. Defaults to config.ini

Example:

[rchive]
client_id = 
client_secret = 
username = 
password = 
user_agent = 

database =

For reddit credentials, see: PRAW Docs - Auth. - Password Flow.

For user agent, typically "/u/username's PRAW Client" is sufficient.

For database connection, see: dataset docs.

Usage

python rchive.py [OPTIONS]

option (short) option (long) description
-c --config Config file to be loaded (default: config.ini)
-v --verbose Set logging level to DEBUG
-e --export rchive by default only preserves self posts and comments. In order to archive full URLs and media, you can export the URLs from your rchive database and send them to something like ArchiveBox, Shaarli, etc.
-f --format FORMAT Format to export URLs to (formats: text/txt)
--skip-archive Skip archive (use with --export to export database without connecting to PRAW)
--include-comment-urls Also include URLs which have been regex'd out of comments (use with --export)
--include-selftext-urls Also include URLs which have been regex'd out of selftext posts (use with --export)
--use-new-reddit Use new reddit to generate permalinks