Skip to content

Fix for another round of reddit API fuckery#7

Open
dziban303 wants to merge 3 commits into
VictorColomb:masterfrom
dziban303:master
Open

Fix for another round of reddit API fuckery#7
dziban303 wants to merge 3 commits into
VictorColomb:masterfrom
dziban303:master

Conversation

@dziban303

@dziban303 dziban303 commented May 31, 2026

Copy link
Copy Markdown
Contributor

Hey Victor, been awhile. I noticed Reddit decided to play around with their API security and now randos and their scripts are seemingly out of luck if they want to access reddit assets unauthenticated. I tried just adding useragent stuff at first, but Cloudflare or whoever is too smart for me.

So I rewrote some portions of the script to make use of oauth2. Users will have to create an app at the reddit dev console and input the client ID and secret, and their username and password, as part of the initial -config flow. Unfortunately these variables are stored in plaintext in the config file because I couldn't figure out a more secure solution, and honestly mate I felt like further effort was a waste of time: I don't think very many people are using this script, lol.

Oh, I also added -showhelp because it apparently was never implemented.

Anyway it's working now, here's the PR to bring upstream up to speed. I know you said you don't use Windows anymore but if you do, some further testing wouldn't hurt!

Cheers mate

P.S., AI disclosure, claude helped with the oauth stuff, but I did carefully go over the changes it made.

dziban303 and others added 3 commits May 6, 2024 16:39
Change URL to use old.reddit.com
Change date format to use ISO 8601 yyyy-MM-dd format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant