11 ms·
Geddit: Open-source, Reddit client for Android without using API
- anste 3y agoNeat. I wasn't aware that there's an endpoint you could use to retrieve JSON data without an API key. If this project were to gain more traction, I suppose they would interfere with that, right? It's sad to see that every free Reddit client is forced to be a browser nowadays.
- nicce 3y ago> I suppose they would interfere with that, right? They will, and go hard on it. Otherwise they are not backing up their problems and prior decisions.
- lvncelot 3y agoThe JSON endpoints are pretty neat, you can just take any reddit page, be it subreddit, submission comments or username, and append `/.json` to the URL and tadaa, JSON data. Although like you said, I'm pretty sure they will axe it at some point, and I'm honestly surprised that they didn't already. I can imagine however, that old.reddit.com scraping/parsing layers will pop up left and right as soon as that happens (and those in turn could be the final nail in the coffin for old.reddit.com)
- conradfr 3y agoThere is also `/.rss`.
- qalmakka 3y agoI think spez completely forgot about the fact they had a way to export data as JSON everywhere. That's basically 80% of what a reddit client needs and basically all an LLM model needs for training.
- jstimpfle 3y agoSorry for spamming here but please check out this -- https://news.ycombinator.com/item?id=36707252 https://news.ycombinator.com/item?id=36707252
- radarsat1 3y ago> Neat. I wasn't aware that there's an endpoint you could use to retrieve JSON data without an API key. Call me naive but in fact I always thought that's what the apps were using. One thing that took me by surprise in the whole fiasco was that the apps were actually using their own API keys -- I always thought I was just logged in to reddit in my own account. I figured it might be using some backend service for storing some app metadata but I didn't realize it was needing to communicate with reddit using the app developer's account on my behalf.
- vladxyz 3y agoBased on folks using ReVanced to patch the shut down apps, it's an oauth client id that was specific to an app. Communication was with reddit's API directly.
- bozhark 3y agoiOS when
- sschueller 3y agoSince this is not native android but Capacitor (JavaScript) it should be quite easy to compile and run it on iOS.
- high_5 3y agoCall me cynical but building a client for a user hostile service is a sign of a Stockholm syndrome.
- frankfrankfrank 3y agoIt’s reddit, Stockholm Syndrome and mental illness is the core of that whole site and community.
- acumenical 3y agoMy thoughts exactly. As long as reddit knows we can't quit on them, they've got us cornered. It's like a toxic relationship.
- acatton 3y agoI totally agree. Also, this is a thankless task. The app will break every other week when they change webpage (if it's using web scraping) or when they change their internal API because the client was updated. (if it's using the reversed-engineered official app's API)
- deleted 3y ago[deleted]
- floomk 3y ago[flagged]
- dang 3y agoWe've banned this account for repeatedly posting unsubstantive and/or flamebait comments (e.g. this one, https://news.ycombinator.com/item?id=36693511 https://news.ycombinator.com/item?id=36693511, and https://news.ycombinator.com/item?id=36693493 https://news.ycombinator.com/item?id=36693493). Would you mind using HN in the intended spirit? It's not in your interest to keep degrading the conversations here—it just contributes to making this place nasty and boring. I'm sure you wouldn't dump trash in a city park or trample public flowerbeds or spill used motor oil in a nature preserve. Why do the equivalent here? https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- jraph 3y agoIt would have been a good name for a GNOME Reddit client.
- zogrodea 3y agoThere is arekeady the "gedit" (g-edit) text editor provided in GNOME-based distros. I alwaysa pronounce it in my head as "geddit" just like this client.
- caporaltito 3y agoI don't get how much of a big deal this API thing is. I don't get how much effort is put to have yet another client app. I don't get all of this. This is... Reddit!
- Timja 3y agoIs this Capacitor specific code? Here it seems the JS code can fetch data from any domain: https://github.com/kaangiray26/geddit-app/blob/main/src/js/geddit.js#L24 https://github.com/kaangiray26/geddit-app/blob/main/src/js/g... Since that is not possible in the browser, is that something Capacitor provides?
- tkzed49 3y agoyou can always fetch data from any domain, iff that server sets the correct CORS headers, unless I'm misunderstanding. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
- Timja 3y agoMost servers don't set a CORS header though. So usually it does not work in the browser. Try this in your console while not on Reddit: fetch('https://www.reddit.com/.json')
- pxndxx 3y agoCORS is a browser security measure to protect users from malicious sites. This is an app and not a web browser and is therefore allowed to send HTTP requests to any URL it wants and to parse the HTTP responses as it deems necessary.
- hoseja 3y agoThe chad scraper.
- arcanemachiner 3y agoIf anyone's interested, I made an open-source reddit reader with Svelte a while back that uses a similar technique: GitHub https://github.com/arcanemachine/svelte-reddit https://github.com/arcanemachine/svelte-reddit https://reddit-micro.surge.sh/ https://reddit-micro.surge.sh/ It's nothing fancy, I just wanted to make something with Svelte (it's got some pretty rough edges, and it's unfinished in some parts).
- jorams 3y agoSo this thing is advertised as a "Reddit client without using their API", but then it uses the reddit API for everything. The JSON endpoints are part of the API. It's how all apps get the content of subreddits, comments, etc. It's odd that they're still open for unauthenticated access, but I expect that to change.
- dabeeeenster 3y agoHow would reddit block them?
- haswell 3y agoI imagine that over time they’ll update their 1st party clients to use authentication, and if they’re really motivated they could implement some kind of token binding. It would surprise me if this isn’t in their near term plans given the apparent urgency they have to shut down the APIs.
- Tommstein 3y agoUnless they block web browsers too, ain't gonna work (and even then, still probably wouldn't work). Any app can simulate a regular web browser.
- haswell 3y agoIt’s less about fully breaking these clients and more about forcing them to deliberately circumvent API restrictions, which opens legal avenues.
- rane 3y agoHow would that work exactly? Wouldn't this library be able to pretend to be a 1st party client?
- maccard 3y agoIt's a game of cat and mouse, it's like anticheat, or user agent spoofing. All reddit have to do is make it "difficult" enough to dissuage the majority of users for it to be worthwhile.
- StrLght 3y ago> without using API This part seems to be incorrect. See this line: https://github.com/kaangiray26/geddit-app/blob/main/src/js/geddit.js#L24 https://github.com/kaangiray26/geddit-app/blob/main/src/js/g... It's literally a call to reddits API.
- codetrotter 3y agoI think what they mean is that it is accessing Reddit the same way that the web front end does. I.e that this Android app does not use the Reddit Data API https://support.reddithelp.com/hc/en-us/articles/16160319875092-Reddit-Data-API-Wiki https://support.reddithelp.com/hc/en-us/articles/16160319875... which if I understand correctly is the API that you would create an app id for on Reddit. It goes without saying that the Android app being discussed here probably breaks the terms of use for Reddit
- StrLght 3y agoI believe this endpoint is the only way to retrieve json with posts from Reddit, so every single app would use it. Even Apollo used it, although it used OAuth for that. See this line: https://github.com/christianselig/apollo-backend/blob/ab04b220a4925239940e7aca90cd6a14f8f08e6a/internal/reddit/client.go#L235 https://github.com/christianselig/apollo-backend/blob/ab04b2... Disclaimer: it's been quite a while since I've last looked into Reddit API, so I could easily be wrong.
- RockRobotRock 3y agoYeah I guess it's an API, but it's using public endpoints that don't require registering an application and creating an API key, or being subjected to the same rate limits. is every endpoint that returns JSON an api? maybe
- ponorin 3y agoSee also: Stealth [https://gitlab.com/cosmosapps/stealth https://gitlab.com/cosmosapps/stealth], which is a native Android app, and Teddit [https://codeberg.org/teddit/teddit https://codeberg.org/teddit/teddit], which acts as a mirror of Reddit, and also offers its own API.
- denysvitali 3y agoYou can do the opposite: take the Reddit apps that aren't working anymore, do a one line change [1] (to use https://api.rings.social https://api.rings.social) and you're now able to use a Reddit client to browse Rings [2][3] - a Reddit API compatible content-voting platform licensed as AGPLv3. [1]: https://github.com/rings-social/Infinity-For-Rings/commit/cd5a1d643fd72a409f4257158d6c7c531c3de37b https://github.com/rings-social/Infinity-For-Rings/commit/cd... [2]: https://rings.social https://rings.social [3]: https://github.com/rings-social https://github.com/rings-social
- BoxOfRain 3y agoA cool variation of this would be a Reddit API to ActivityPub bridge which would make it compatible with Lemmy, Kbin etc. I saw a project for this a while ago but can't remember what it's called.
- jeroenhd 3y agoYou may be thinking of tafkars: https://github.com/derivator/tafkars https://github.com/derivator/tafkars Activity seems to have died down now that some larger Reddit apps have announced they're building dedicated Lemmy clients. Connect for Lemmy is pretty good already, Sync is coming out with an app in a few weeks, and there are other apps out there as well.
- thomond 3y agoIt doesn't look like it's buzzing with activity. Six posts?
- denysvitali 3y agoIt's still being developed and other posts are available in the other rings. The "/r/popular" feed is not (yet) a feed
- RamblingCTO 3y agoThis uses a different social network, doesn't it? Why would you want that? The point of reddit is the existing community
- mypastself 3y agoTangentially related, but what happened to the protest? Did all the mods just fold after the threat of being replaced? For something that was pushed so hard for a couple of weeks on Reddit’s front page, it’s bizarre how forgotten the protest seems to be after the changes were put into effect.
- Dalewyn 3y agoWelcome to hearing absolute noise from the vocal minority. The only people who complained were third party client/tool developers, some of whom were making money off of them, and mods who at this point are infamous for their desire for power and authority. Reddit squarely targeted one and then the other, and they won because the silent majority (aka the vast majority of users) didn't care. With regards to the mods specifically, it could even be argued the silent majority sided with Reddit simply from how down in the dirt the reputation of mods is. Put another way, what you witnessed was the digital equivalent of those socio-political protests, attended purely by crowds of high school and college students, while the rest of society continued on paying no heed.
- NicuCalcea 3y agoI used to mod several subreddits, I've left all but one. Some still have mods, others are now abandoned and starting to get overrun by spam.
- raverbashing 3y agoYeah sounds like a win, let them pay for moderation if they want to alienate their user base
- glonq 3y agoI left and never returned. I spend more time on HN now, and am trying to become satisfied with Lemmy too.
- arein3 3y ago[flagged]
- reportgunner 3y agoJust let that site die already oh my god.
- hospitalJail 3y agoRIF still runs, without logins
- zecg 3y agoYeah, I'm not giving reddit any more content or metrics and thus I'm simply not using it anymore. Why use a shitty service that I hate when I can help make the fediverse a little bit better? It's large enough for my needs and lemmy / jerboa is really good.
- PM_me_your_math 3y agoReddit sucks. No thanks.
- commandlinefan 3y agoNice thought, but the reason apps like Apollo were popular had to do with functionality that you could only get through the API, like auto-banning users who interacted with specific subs. You can't emulate that through screen scraping.
- whoomp12342 3y agoyeah but its the tile based layout that I hate about reddit. When this is made like classic reddit or a "reddit is fun" clone, I will bite.
- cchance 3y agoSilly question, what would stop someone from using this technique from scraping the biggest subreddits, and then cross posting to say mastadon, and then allowing people to claim their cross posts, by using reddit's login api lol