Trying to login using requests

advertisingagency

Junior Member
Joined
Apr 9, 2023
Messages
103
Reaction score
63
Trying to log into reddit using requests but can't get it to work has anyone the code for it?

My plan is to login to reddit using requests export the cookies.
 
In theory that's possible, but without loading the java scripts, which raw requests can't handle, that's a surefire way for getting all the logged accounts flagged.
 
In theory that's possible, but without loading the java scripts, which raw requests can't handle, that's a surefire way for getting all the logged accounts flagged.
yeah also reddit is too harsh, might just leave the thought of getting that to work.
 
yeah also reddit is too harsh, might just leave the thought of getting that to work.
Considering people get banned even when setting up the accounts and using Reddit (even manually) with the highest care, automation isn't going to help more, but can get things worse...
 
I've worked with logging into Reddit using requests. Make sure you grab the CSRF token from the login page, and include the necessary headers like User-Agent. Then, use a POST request with your login details and the token. Don’t forget to save the cookies from the response.

Reddit can be tricky with automation, so be mindful of CAPTCHAs or any unusual activity flags. You may need to rotate user agents to stay under the radar.
 
You need to get the token, which is in the network payload section. They added it to force people to open Reddit and log in or sign up normally, so normal request scripts won’t work without it. Reddit cookies and other detect system also can tell that you're using a script instead of actually opening the page. This method stopped working a long time ago. Now, no matter what you do, they’ll know you’re spamming, and you will get shadow-banned. Even if it doesn’t happen immediately, they’ll ban you after a while so you don't know what you did wrong, leaving you confused. But give it a try so you can learn and experiment yourself, It's fun to play around with reddit
 
Back
Top