All Projects → samirelanduk → reddit-save

samirelanduk / reddit-save

Licence: other
A Python tool for backing up your saved and upvoted posts on reddit to your computer.

Programming Languages

python
139335 projects - #7 most used programming language
CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to reddit-save

Stocksera
Web application that provides alternative data to retail investors
Stars: ✭ 426 (+453.25%)
Mutual labels:  reddit
lemmur
🐒 A mobile client for lemmy
Stars: ✭ 228 (+196.1%)
Mutual labels:  reddit
serializer
A linearizing social tech news reader
Stars: ✭ 89 (+15.58%)
Mutual labels:  reddit
reddit-comment-highlights
A browser extension with minimal permissions that highlights Reddit.com comments since you've been away
Stars: ✭ 31 (-59.74%)
Mutual labels:  reddit
Upvote-Anywhere
Upvote Anywhere Browser Extension
Stars: ✭ 339 (+340.26%)
Mutual labels:  reddit
loseyourself
Lose yourself, programmer edition. Based on a tweet by @kvlly!
Stars: ✭ 34 (-55.84%)
Mutual labels:  reddit
today-AI-learned
Training a classifier to reddit's TIL to find new things on Wikipedia
Stars: ✭ 35 (-54.55%)
Mutual labels:  reddit
PrawWallpaperDownloader
Download images from reddit
Stars: ✭ 18 (-76.62%)
Mutual labels:  reddit
redditnav
RedditNav is a beautiful way of moving between threads, accelerating the way you browse reddit comments.
Stars: ✭ 49 (-36.36%)
Mutual labels:  reddit
Reddit-Embed
Embed any reddit post onto your website!
Stars: ✭ 15 (-80.52%)
Mutual labels:  reddit
saveddit
Bulk Downloader for Reddit
Stars: ✭ 130 (+68.83%)
Mutual labels:  reddit
aPRAW
Asynchronous Python Reddit API Wrapper
Stars: ✭ 49 (-36.36%)
Mutual labels:  reddit
nichtparasoup
nichtparasoup is a web-based hackspaces entertainment system. It continuously displays random images from Reddit & Pr0gramm in your web-browser. Image sources are highly customizable.
Stars: ✭ 39 (-49.35%)
Mutual labels:  reddit
kriptomist
Fundamental cryptocurrency analysis
Stars: ✭ 29 (-62.34%)
Mutual labels:  reddit
Slide-iOS
A powerful new way to Reddit on iOS.
Stars: ✭ 461 (+498.7%)
Mutual labels:  reddit
borrow-bot
💰 A bot for maximizing the borrow subreddit
Stars: ✭ 26 (-66.23%)
Mutual labels:  reddit
music-from-reddit
Flutter app to listen music curated from subreddits
Stars: ✭ 24 (-68.83%)
Mutual labels:  reddit
hide-comments-everywhere
A browser extension for hiding major commenting systems like Disqus, Livefyre, Facebook plugin, WordPress, YouTube, etc.
Stars: ✭ 27 (-64.94%)
Mutual labels:  reddit
DownloadRedditImages
Easily download all the images from any subreddit (also select sort_type if you want hot/top/new/controversial, and also sort_time day/week/month/year/all). Randomly select downloaded images and set as wallpaper, updating every 30 mins (or whenever you want duh)!
Stars: ✭ 66 (-14.29%)
Mutual labels:  reddit
Pixel
A real-time collaborative canvas, inspired by Reddit Place
Stars: ✭ 26 (-66.23%)
Mutual labels:  reddit

reddit-save

A Python utility for backing up your reddit upvoted/saved stuff.

Browsing through the stuff you've liked or saved on reddit is really enjoyable and, depending on the reason you saved something, can be a great way to recap stuff you once thought important. It is a personalised feed of posts and comments by the one person guaranteed to know what you like - past you.

However over time more and more of the older posts will be deleted or missing, and the historical record atrophies. Use this tool to back up those posts and comments to your computer where you can browse them offline, and where they are safe forever.

reddit-save will backup saved posts, saved comments, and upvoted posts. It can't do upvoted comments because the reddit API doesn't expose them. Crucially, when it is run again on the same location it will ignore any posts/comments previously archived - once something is saved, it's saved permanently.

Installation

$ git clone https://github.com/samirelanduk/reddit-save .
$ cd reddit-save
$ pip install -r requirements.txt

If you get permission errors, try using sudo or using a virtual environment.

You will need ffmpeg installed somewhere too.

Rename the file logindata.py.example to logindata.py. You will need to add four things to this file, your reddit username and password, and a reddit client ID and secret. The latter two are obtained using the instructions here. The file should look something like this:

REDDIT_USERNAME = "spez"
REDDIT_PASSWORD = "myredditpassword123"
REDDIT_CLIENT_ID = "sadsU7-zfX"
REDDIT_SECRET = "687DDJSS&999d-hdkjK8h"

Use

Create a folder that will contain your archive. Then run:

$ ./save.py saved folder_name
$ ./save.py upvoted folder_name

The first command will backup your saved posts/comments to a file called folder_name/saved.html. The second will backup your upvoted posts to a file called folder_name/upvoted.html.

Each post will have its top-level comments saved, as well as each of their immediate child comments (but no further).

Linked media files (images, videos etc.) will be saved locally where possible, though imgur is currently not well supported in all cases.

Use with Docker

Rather than installing dependencies locally, you can use docker to create a local image and use that instead. First build the image:

$ docker build -t redditsave .

Then run reddit-save within a container created from this image:

$ docker run \
-e REDDIT_USERNAME=spez \
-e REDDIT_PASSWORD="myredditpassword123" \
-e REDDIT_CLIENT_ID="sadsU7-zfX" \
-e REDDIT_SECRET="687DDJSS&999d-hdkjK8h" \
-v /Local/location/to/save/in:/opt/app/archive \
redditsave saved
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].