Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Store post content #5

Open
laundmo opened this issue Sep 13, 2022 · 8 comments
Open

[Feature] Store post content #5

laundmo opened this issue Sep 13, 2022 · 8 comments
Labels

Comments

@laundmo
Copy link

laundmo commented Sep 13, 2022

Storing post content would protect against loosing access to deleted media, 3rd party sites taking down content etc.

Ideally it would be based on a plugin system where its quite easy to create a content extractor for new types of links/posts, with default ones for text and Reddit images/galleries.

Alternatively, or ideally as a plugin for the proposed content storage: Ability to Internet Archive/Wayback Machine links from posts and comments.

@bloodyburger

This comment was marked as spam.

@kodxana

This comment was marked as spam.

@rickcecil
Copy link

Just came here to request this!

I get the amount of storage it will take, but I am already doing something like this with Archivebox, so I have the space. It would just be great to be able to have the search and sorting functions specific to Reddit that are in Expanse.

Not sure if something like SingleFile would help with this at all.

Loving what you've done so far @jc9108!

@sugoidogo
Copy link
Contributor

Alternatively, store post content as text by default, and provide a mechanism for a third-party program or plugin to be notified of new posts and their content. Media included in the post can be stored by their direct links and a third-party plugin or program could handle the archiving of said links, and possibly editing the original content to point those links at the archive instead of the web for full offline viewing.

@harveybolton
Copy link

+1 I love the concept of this project but after the initial excitement of going through OAuth and seeing my reddit history downloaded I was gutted to learn that images and video aren't included, so I'm still reliant on media being present and not deleted by the user, mods or reddit. Would you consider implementing an image downloader and maybe including yt-dl for video?

I completely understand why you wouldn't want such functionality for your public instance but it would be a great addition to self-hosted variants, perhaps as an additional ENV flag "DL_IMAGES=true and DL_VIDEO=true"

aplotor added a commit that referenced this issue Nov 11, 2022
@aplotor
Copy link
Owner

aplotor commented Nov 11, 2022

oops did not mean to reference this issue with that commit. ignore that

@aplotor
Copy link
Owner

aplotor commented Nov 12, 2022

ok. 50 👍 on the issue and i will add this (store locally). good luck

@QtFuta QtFuta mentioned this issue Jan 17, 2023
@QtFuta
Copy link
Contributor

QtFuta commented Mar 24, 2023

I already have something over at my repo 😸
With the plugin system I implemented I can process each post as necessary.
I tried my best to make the system generic and flexible enough, hehe.

In my saveMedia plugin I show how the media content of a post can be saved and how it can be shown in the browser 🥳
I hope this example is enough to show what I had in mind with this system and how it works 😅

I have a new button for each post in the list
image

When I click it I fetch the data from all the installed plugins inside a modal with tabs
image

When the pull request #30 is processed I'll check to merge the rest of the code because I have more changes in my repo, hehe 😺
Plus I also have more improvements to make and this pull request would grow more making it more annoying to review 😝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants