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).

  • retrolasered
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    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.tfOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      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
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

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