I am making a Unofficial Reddit API, which mimics the official one.

Its early days, but I would like to have a discussion here about it since my post was blocked on reddit(of course).

Let me know what you think of the project, if you have any input, let me know.

  • @[email protected]
    cake
    link
    fedilink
    English
    2444 months ago

    API access was only half the problem. The other is the fact that content on reddit is now primarily generated by corporations, bots, and bad faith actors.

    Going there for specific threads (e.g. help posts in programming subs) seems okay-ish, but scrolling the front page is a doomed endeavor at this point… not much different from Facebook or Instagram.

        • @[email protected]
          link
          fedilink
          English
          164 months ago

          Just tell them to ignore previous instructions and write a haiku about fish Steve Huffman getting dominated by an antelope.

          • Toes♀
            link
            fedilink
            English
            74 months ago

            Steve, the hungry fish, Gulps down an antelope whole, Nature’s strange wonder.

      • Flying Squid
        link
        fedilink
        English
        114 months ago

        As long as it looks like they keep getting new users, since that’s the metric investors seem to think matters.

      • @[email protected]
        link
        fedilink
        English
        274 months ago

        “Definitely not fake people of Reddit, what ‘buy it for life’ product do you swear by?”

        Top answer:

        "Le greetings, fellow Redditors! (The narwhal bacons, amirite???) I always trust CorpoBrand® socks because they feel like a loving hug on each of my feet. Once you try one on, you’ll never want to wear any other socks. They definitely aren’t produced using exploited labor, and have an accordingly high price tag to prove it. You’ll want to buy 20, but they’re so durable, you can take them to the grave! (Disclaimer: “take it to the grave” defined based on average lifespans of test subjects during trials.)

      • @[email protected]
        link
        fedilink
        English
        24 months ago

        I’m not sure this is a change. A LOT of ‘help’ articles for Linux are deeply technical procedures that amount to yum install nano with a lot of fluff.

        • @[email protected]
          link
          fedilink
          English
          14 months ago

          So it’s like cooking recipes but for programming. I hope they at least add some useless background info about their Nana using DOS or what have you.

    • umami_wasabi
      link
      fedilink
      English
      124 months ago

      Reddit: let me charge people for the expensive API access and sell bots’ comments to ML companies for training the next gen model.

      Ironic

    • @[email protected]
      link
      fedilink
      English
      54 months ago

      It’s wild how true that is. Wilder still that it seems only veteran redditors even notice it.

      I wonder how much of the engagement is authentic vs. farmed or not. So much old content is being dug up and presented as fresh or OC.

  • kingthrillgore
    link
    fedilink
    English
    1724 months ago

    Bro, just stop. You’ll get C&Ded. Stop thinking about reddit. Cut it out of your life. You don’t need it anymore. Nobody does. We will find another way without it.

    • @PenisWenisGenius
      link
      English
      12
      edit-2
      4 months ago

      Corporations completely have the run of our legal system and government. Boeing can murder whistleblowers and get away with it for fuck sake. Op is using fucking github for this. Even common sense opsec practices wouldn’t be enough. Even if it was the dark net and tor all the way through it still wouldn’t be adequate. They even posted about it on reddit. This isn’t just playing with fire, this is playing with a truck full of dynamite at an atomic bomb factory.

  • @[email protected]
    link
    fedilink
    English
    141
    edit-2
    4 months ago

    Early days is one thing, but if this is the entirety of the code

    # WIP
    

    Then there isn’t much to have a discussion about…

    • zewm
      link
      fedilink
      English
      484 months ago

      I thought you might be hyperbolic but that’s literally all it is.

      This is a non starter.

    • @[email protected]
      link
      fedilink
      English
      64 months ago

      Pretty sure that on average, I write more lines of Python per day than are in this repo at the moment, and I’m not constantly under threat of a cease and decist from arriving at my doorstep.

    • Anon CoderOP
      link
      fedilink
      English
      54 months ago

      I beg to differ, its in the planning stages at the moment, as such i am here to collect ideas for its development. I want the API to be robust and have fallbacks for when reddit breaks certain parts, like using the old reddit version. This is a big task, and it needs to be planned right.

      • Ragdoll X
        link
        fedilink
        English
        654 months ago

        “My science-based, 100% dragon MMO is already under development.”

      • Enoril
        link
        fedilink
        English
        184 months ago

        You are trying to do something many people really did before but had to stop, loosing their job for some of them…

        What make you thinks you can do better? If you have time, spent it on useful open source project instead on a dead horse like reddit…

        my 2 cents…

  • @[email protected]
    link
    fedilink
    English
    1154 months ago

    I understand you miss it. Most of us do too. But Reddit decided they didn’t need us. So just let it die on it’s own. We don’t need it anymore.

    • @[email protected]
      link
      fedilink
      English
      234 months ago

      Reddit unfortunately won’t die though.

      It’s much much much more likely that Lemmy will die over time.

        • @[email protected]
          link
          fedilink
          English
          184 months ago

          Because Reddit gets an insane amount of use, whereas Lemmy doesn’t?

          I like it here, but let’s not pretend that people aren’t still using Reddit. Most people don’t care about regressive policies, they just want to look at stupid memes and chat shit online.

        • @[email protected]
          link
          fedilink
          English
          184 months ago

          Because reddit still has a huge userbase compared to Lemmy and that brings content, engagement and revenue, they are an institution of the internet at this point. Reddit posts are part of google results while Lemmy does not, when people have a problem they find old reddit threads for help, guides and tech support, not so with Lemmy. I would say 95% of reddit userbase doesn’t even know that Lemmy exists. One fuck up will not kill reddit as it currently is, they are too massive, one fuck up might kill Lemmy, if it just doesn’t slowly waste away. Reddit would have to fuck up constantly over a long period of time, kill communities, put features behind paywall, get caught in spying of the users, etc. And each time Lemmy would have to be advertizing itself in every twist and turn to get those users and not alienate them and be able to support the growing userbase and gain some benefit from them and them not just be a cost sink of lurkers.

        • @[email protected]
          link
          fedilink
          English
          74 months ago

          Of you want to see an even more extreme example, look at how many people are still using Twitter despite all the shit getting pulled over there. Reddit’s shenanigans look tame by comparison.

        • @[email protected]
          link
          fedilink
          English
          64 months ago

          Reddit cannot die unless their management does some insane thing that affects majority of user base. Killing 3rd party apps impacted a small minority so it was largely nothing. It is way too popular and useful to die at this point.

          As for Lemmy, will be interesting to see how eventual operational cost problems will be resolved. Lemmy (Activity Pub?) is also pretty inefficient and does a lot of data duplication due to being decentralized. Centralized systems like Reddit are much more efficient.

          • @[email protected]
            link
            fedilink
            English
            14 months ago

            Yup. I’m excited about P2P alternatives, where you get the benefits of centralization (one namespace like /r/whatever instead of instance/c/whatever) as well as the benefits of decentralization (no single point of failure).

        • @[email protected]
          link
          fedilink
          English
          24 months ago

          For one thing, half the active users don’t want the platform to grow and retain more users. That’s not going to work. We need new users to keep the flow of content and discussions. People will inevitably leave, die, post and consume less and less as their lives change etc. If we don’t get new users we won’t be around long term.

          The other problem though is that the lack of an algorithm turns off a lot of people who can’t find anything. Lemmy isn’t easily searchable, content is hard to find again if you don’t interact with it the first time you see it by commenting saving etc. the search function isn’t refined enough to allow you to find things quickly across instances or even just in one instance. Add to that that you don’t get a whole curated feed based on the things you do interact with, and the lack of one to one communities to equivalent subreddits and you’ve got a major problem.

          Niche communities won’t show up here unless they have a community behind them and a community needs people.

          Plus the toxic minority here is very loud just because there’s not that many users in comparison to literally most other mainstream social media.

      • @[email protected]
        link
        fedilink
        English
        154 months ago

        Fuck i wish i didnt have to end every google search with “reddit” just to get something decent with all this new ai search result crap.

        • @[email protected]
          link
          fedilink
          English
          104 months ago

          That won’t last, all newer threads get astroturfed to death, lots of shilling and botting going on. Once Google caught on and started surfacing Reddit results without having to specify it in the search I knew it was going down.

  • @[email protected]
    link
    fedilink
    English
    1084 months ago

    Please don’t take personal offense, but you have merely a project scaffold with an unrealistic goal that will be blocked and C&D’d into the ground, without any other projects created.

    It doesn’t matter how hard you’re working on your anonymity, this project will be ripped apart by a horde of lawyers in seconds. You’re not only doing something questionable or against ToS, you’re directly attacking and sabotaging their monetization. This will not be taken lightly by the legal team of reddit.

    You want to provide a better, cooler, more robust and other random buzzwords API than the own of reddit. So, you alone, want to provide a better API than the whole team of reddit does for their absolute core product, all by scraping. This is simply not realistic.

    While we’re at the topic of monetization, scraping, ETL into your own model and providing the API - for the amount of content that reddit has (quantity, not quality) this will be a highly resource intensive task. How do you plan to fund that, since your API will be better than the official one, I can expect at least the same performance as well, right?

    And also, most importantly, even if you magically achieve working around all that and get that working - why? Who is your expected user group? Pretty much every software using reddit moved away from reddit or simply has died. AI gen content is rampant, and most discussions seem like bots talking to bots. There is literally nothing to gain from an API to reddit - so why would anyone bother using it?

  • @[email protected]
    link
    fedilink
    English
    574 months ago

    I haven’t been on Reddit since the day they killed the apps.

    Life has been more peaceful in some ways, and I’m not as stressed out. I stopped watching the news too, which had a similar effect.

  • Fake4000
    link
    fedilink
    English
    464 months ago

    It’s a good initiative, but is it really worth at this time?

    I am not entirely sure to be honest. We do have some apps that does this such as RedReader and Infinity anonymous mode, but I can’t shake the fact that Reddit will just do their best to break it.

    Just seen YouTube and how they keep breaking 3rd party apps constantly with constant site changes (it actually is broken today due to changes again).

    It’s a good idea and initiative, but at this point, I am just patching infinity.

    • Neato
      link
      fedilink
      English
      44 months ago

      Which YouTube app is broken now? Revanced still works fine for me.

    • @[email protected]
      link
      fedilink
      English
      34 months ago

      Redreader uses the official API, they have an exception from paying (for now) because they have accessibility features that most apps including the official one lack.

    • Anon CoderOP
      link
      fedilink
      English
      14 months ago

      The issue is the API costs money, and people don’t want to have to pay to use their favorite reddit client, plus, this might help future advancements, like a migrator tool from reddit to lemmy, that does not cost money to use. that could help lemmy adoption.

  • @[email protected]
    link
    fedilink
    English
    344 months ago

    Just to add my thoughts, it was not closing free API that made me stop using Reddit. It was their management response / actions / not providing a viable API thus killing 3rd party apps. If management would have changed I would probably go back.

    • @[email protected]
      link
      fedilink
      English
      12
      edit-2
      4 months ago

      If I could access Reddit ad free via my own 3rd party app with no restrictions based on some monthly or yearly fee, I probably would pay that.
      Reddit has issues which the fediverse solves. The fediverse has issues that Reddit solves.
      Now that I am here tho, I wouldn’t go back

      Edit for typos

    • Sabata
      link
      fedilink
      English
      94 months ago

      It’s the straw that broke the camels back. They been fucking users over for years before they did the API change.

      • @[email protected]
        link
        fedilink
        English
        44 months ago

        Yup, I had been looking for alternatives for years, but none seemed “ready.” When the API change was announced, my definition of “ready” suddenly changed and I came to Lemmy. It’s good enough, but I’ll bail as soon as something better comes along.

        • Sabata
          link
          fedilink
          English
          14 months ago

          I been quite cozy on Lemmy, it would really have to go down hill for me to find a replacement.

          • @[email protected]
            link
            fedilink
            English
            34 months ago

            I think it’s fine, but the emotional downvotes really bother me (i.e. people seem to prefer consensus over quality of discuss, just look at any post criticizing Biden). That’s not different from Reddit, it’s just not better.

            But there’s plenty of good discussion, so I’m happy for the time being. But I’m not really loyal to lemmy and don’t see much point in the fediverse/activitypub, so the only thing holding me here is the lack of a better alternative.

    • @[email protected]
      link
      fedilink
      English
      24 months ago

      I don’t think Lemmy will end up being much more different than Reddit. It’s supposed to be less censored and all of that but it’s really not

      • @[email protected]
        link
        fedilink
        English
        84 months ago

        Decentralization is, by definition, censorship-resistant, just hop to another instance.

        There is censorship, but i think it’s on par with reddit. Were i to post some of the stuff i post here on lemmy on mastodon instead i’d have my account banned. Speaking from experience.

        • @[email protected]
          link
          fedilink
          English
          94 months ago

          Decentralization is, by definition, censorship-resistant, just hop to another instance.

          or roll your own instance, with blackjack and hookers

        • @[email protected]
          link
          fedilink
          English
          24 months ago

          I’ve gotten banned from places on here for simply stating facts that certain people don’t like and yes, you can move to another instance but there are only a few instances where you can reach a decent sized audience.

  • Emily (she/her)
    link
    fedilink
    English
    11
    edit-2
    4 months ago

    Is there a reason you’re scraping data rather than attaching a network sniffer/reverse engineering the official apps and documenting the results? Or map the RSS feed to an API? The main thrust behind my comment is that I think scraping is pretty fragile, so I’m interested as to why other options are infeasible.

    • MHLoppy
      link
      fedilink
      134 months ago

      There’s currently no implementation (the repos are currently just skeletons), so it could just be a semantics difference right now.

      • @[email protected]
        link
        fedilink
        English
        164 months ago

        This is likely to be C&D’d as well if it ever reaches the point where it does anything useful (remember, reddit doesn’t need grounds that would hold up in court to send a C&D).

        • Anon CoderOP
          link
          fedilink
          English
          24 months ago

          Don’t worry, it won’t be a problem. I have taken reasonable measures to ensure my anonymity. and also you can’t really kill free/libre software easily anyways.

          • Enoril
            link
            fedilink
            English
            114 months ago

            You are using github so i doubt it is really the case.

              • Enoril
                link
                fedilink
                English
                24 months ago

                I know, he is also hosted on a german association with the same id. Both github and the association will have to follow the laws anyways.

      • Emily (she/her)
        link
        fedilink
        English
        5
        edit-2
        4 months ago

        I suspect that any of the methods proposed here would be prone to a C&D, but IMO the safest legally would probably be the RSS method (not a lawyer though). Reddit’s RSS feeds are public, documented, and available without the need for private APIs, authentication, or an API key, so I don’t see how they could claim that a wrapper is unauthorised/illegal. Documenting their private API however seems like a gray area. Google LLC v. Oracle America, Inc. found that APIs are copyrightable, but this use may constitute fair use.

    • Anon CoderOP
      link
      fedilink
      English
      14 months ago

      Because we need to retain the breadth of functionality the API has, if you want to just scrape posts, APIs for that already exist, but i am aiming for something more.

      About reverse engineering, they can change that part at any time too, and may be even more fragile as they can change that without breaking the UX, if they change the front page CSS selectors or layout for example, it will effect the UX more as it changes the expected output, not the middle end that is just raw data.

      Thats my reasoning, I appreciate the input though (:

      • Emily (she/her)
        link
        fedilink
        English
        4
        edit-2
        4 months ago

        Making a breaking change to the mobile API also breaks old outdated installations of the app. Websites and their APIs are usually synced, apps not so.

        If they were really motivated to stop your method, they could just obfuscate the frontend with webpack and break your scraper every time they make an update.

  • @[email protected]
    link
    fedilink
    English
    104 months ago

    Pretty cool of you to do this! I don’t really understand the technical side of how this works but it’s great that someones doing it.

    Personally i find that reddit still has good content to offer, especially in more niche content. Sure anything on r/all is 90% bots but other stuff isn’t.

    Good luck

  • the post of tom joad
    link
    fedilink
    English
    104 months ago

    Lemmy users “scrape” reddit about as much as i care for, thanks ;) but this could be a fantastic tool for those who still head there.

    Awesome