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.

  • wyrmroot@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    2 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@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

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

      This is a non starter.

    • Artyom@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 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 Coder@discuss.onlineOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 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.

      • Enoril@jlai.lu
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 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…

  • Fake4000@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 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.

    • Anon Coder@discuss.onlineOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 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.

  • felbane@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 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.

    • just_another_person@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Out of curiosity, I flipped through a few days back, and it’s exactly that. Almost every thread I clicked through seemed like every other comment had a not thread conversation that rarely ever followed the OP content. So it’s just a bunch of AI chatbota talking to each other about nothing. That didn’t take long.

        • db2@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

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

          • Toes♀@ani.social
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

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

      • Flying Squid@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

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

    • umami_wasabi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 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

      • corsicanguppy@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 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.

      • Stovetop@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 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.)

  • Emily (she/her)@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 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?

    • MHLoppy@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

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

    • Anon Coder@discuss.onlineOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 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)@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        Making a breaking change to the mobile API alao 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.

  • barsquid@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Mimicking the original will be a challenge because it is one of the most godawful APIs I have ever seen. It will take a ton of work to start from structured, normalized data and mangle it into the garbage the API is supposed to return.

  • FlavoredButtHair@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Now, if only to get their auto bots to stopping banning accounts for little to no reasons. If you disagree with the wrong mod or they don’t like what to you say, they ban you.

    My 12yr old account got banned. I’m not worried about the link karma and comment karma.

    • NoSuchAgency@reddthat.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 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

      • 0x0@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 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.

        • NoSuchAgency@reddthat.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 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.

        • demonsword@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

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

          or roll your own instance, with blackjack and hookers

  • OfficerBribe@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 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.

    • Sabata@ani.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

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

    • towerful@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 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

  • InfiniteGlitch@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I have no idea about coding and such. However? It is a cool idea and would be fun to use Apollo again (if that’s possible).

    I really like Lemmy but some of the subreddits are not in here. Or they are but empty/ death.

  • x1gma@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 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?

  • HarbingerOfTomb@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 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.

      • Breezy@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 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.

        • Obi@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 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.

    • lud@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Reddit unfortunately won’t die though.

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