Take a look at this post. Maybe the GitHub repo mentioned there can help.
this post was submitted on 13 Jul 2023
196 points (97.1% liked)
14265 readers
3 users here now
founded 5 years ago
MODERATORS
There were some discussions among the teddit hosts about attempting to use scraping instead, but it's not easy and requires a lot of changes to the code. Not to mention it's going to quickly become a cat and mouse game if reddit makes changes to their site. It's just not worth it at this point. Reddit doesn't want us.