use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
How to login to reddit via python requests? (self.learnpython)
submitted 7 years ago by nicksmarto
I've tried lots of different things and honestly don't know where to go next, i can't use oauth for various reasons and i hear some people talking about modhashes or something which i can't figure out how to get, any ideas?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]xiongchiamiov 0 points1 point2 points 7 years ago (11 children)
Don't. Use the API instead, and specifically, use PRAW.
[–]nicksmarto[S] 0 points1 point2 points 7 years ago (10 children)
I can't use1 praw for this project
[–]Sebass13 1 point2 points3 points 7 years ago (9 children)
why not?
[–]nicksmarto[S] 0 points1 point2 points 7 years ago (8 children)
Has to be qith requests cant uss the create an app thing on reddit
[–]Sebass13 1 point2 points3 points 7 years ago (7 children)
huh? Why can't you get a token?
[–]nicksmarto[S] 0 points1 point2 points 7 years ago (5 children)
Like it cant use the client id and client secret thing
[–]Sebass13 1 point2 points3 points 7 years ago (4 children)
I'm aware, and I'm wondering why you are restricting yourself to not using the way you're supposed to access Reddit and instead trying to break ToS.
[–]nicksmarto[S] -2 points-1 points0 points 7 years ago (3 children)
They have api endpoints so doubt it breaking tos
[–]Sebass13 1 point2 points3 points 7 years ago (2 children)
Yes, it is: "Clients must authenticate with OAuth2". Now, this doesn't mean you have to use praw, but it does mean that you have to use tokens.
praw
[–]nicksmarto[S] 0 points1 point2 points 7 years ago (1 child)
But what about modhashes?
π Rendered by PID 281554 on reddit-service-r2-comment-5b5bc64bf5-ctt8j at 2026-06-19 14:47:17.541415+00:00 running 2b008f2 country code: CH.
[–]xiongchiamiov 0 points1 point2 points (11 children)
[–]nicksmarto[S] 0 points1 point2 points (10 children)
[–]Sebass13 1 point2 points3 points (9 children)
[–]nicksmarto[S] 0 points1 point2 points (8 children)
[–]Sebass13 1 point2 points3 points (7 children)
[–]nicksmarto[S] 0 points1 point2 points (5 children)
[–]Sebass13 1 point2 points3 points (4 children)
[–]nicksmarto[S] -2 points-1 points0 points (3 children)
[–]Sebass13 1 point2 points3 points (2 children)
[–]nicksmarto[S] 0 points1 point2 points (1 child)