this post was submitted on 16 Jun 2023
49 points (100.0% liked)

Free and Open Source Software

19543 readers
81 users here now

If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

Has anyone made or found a script to scrape a subreddit and import it to a Lemmy community? There are a handful of smaller subs that I'd like to mirror over to my instance (with author attribution) but haven't found anything that works yet. https://github.com/rileynull/RedditLemmyImporter looks promising but links to a non-functioning Python script (tries to use Pushshift, which isn't working at the moment).

you are viewing a single comment's thread
view the rest of the comments
[–] retrolasered@lemmy.zip 1 points 2 years ago* (last edited 2 years ago) (1 children)

Thats kotlin. Someone did post a github gist python script here in the past 24 hours though perhaps thats the one you mean?

Edit: typos

[–] jon@lemmy.tf 0 points 2 years ago (1 children)

The LemmyImporter repo expects you to already have all your post data in a json file- it has a link in the readme to a Lemmygrad.ml comment with a Python script. Seems like it would do exactly what I want, if Pushshift was working. I may be able to fiddle with it enough over the weekend to hit Reddit directly, though.

[–] retrolasered@lemmy.zip 1 points 2 years ago

Oh right. Apologies, did a classic and skipped the readme! 10 minutes documentation 10 hours something or other 😆