this post was submitted on 10 Jun 2023
23 points (96.0% liked)

Lemmy

12443 readers
69 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS
 

Hello! I wrote a simple bot that periodically checks for new reddit posts and posts them to lemmy, so that people migrating from reddit to lemmy can still be able to see their favourite posts, but familiarizing with lemmy.

currently the coments are not synced, but this may change in the future (perhaps)

Yes, it uses the Reddit API, so it will stop working on the 1st of July, but I think that then I can implement a sort of web scraper to access Reddit posts without the official API, so this may eventually keep working for a while.

this script is currently on my laptop so it will be offline most of the time, but if I get the approval I may host it somewhere to get it running 24h/24.

now the question... Is this allowed? having this bot running 24h/24 on large subreddits will mean a very high quantity of posts. will this cause any problem to Lemmy?

if you want a preview check out https://enterprise.lemmy.ml/c/reddit_memes, where I started syncing a few posts from r/memes

let me know your opinion on this!

==== EDIT

here's the bot source code

The bot is now running in https://sh.itjust.works/c/reddit_memes, let's try to see if it work (I hope that shit just works)

I'm a bit concerned about the legality of this, if anyone has any info please tell me!

you are viewing a single comment's thread
view the rest of the comments
[–] Die4Ever@programming.dev 1 points 1 year ago (1 children)

maybe you should open source the bot?

it could also have filtering rules like only import posts with a minimum score or only the front page of the sub, could be configurable for each subreddit separately

[–] tubbadu@lemmy.one 1 points 1 year ago (1 children)

Yeah I'm literally creating the github repo right now lmao

[–] Die4Ever@programming.dev 2 points 1 year ago (1 children)

another tool that might be good, idk if it already exists, but an RSS feed to Lemmy importer

actually Reddit supports RSS output, so you might already be using that?

[–] tubbadu@lemmy.one 2 points 1 year ago (1 children)

will reddit keep RSS support after the 1st of july?

[–] Die4Ever@programming.dev 2 points 1 year ago (1 children)
[–] tubbadu@lemmy.one 2 points 1 year ago

we'll see

I edited the original post with the link to the github repo and the community it's running on now