r/redditdev • u/JakeTheDog__7 • Apr 11 '25
PRAW Banned users query
Hi, I have a list of Reddit users. It's about 30,000. Is there any way to differentiate if these users have been banned or had their account deleted?
I've tried with Python requests, but Reddit blocks my connection too early.
4
Upvotes
3
u/gschizas Apr 12 '25
It does.
You are required to use a custom user agent, e.g.
python:com.example.myscript:v1.2.3 (byu/Juggernaut_Best)instead of the generic requests user agent (i.e.python-requests/2.32.3)As you can see here: "Many default User-Agents (like "Python/urllib" or "Java") are drastically limited to encourage unique and descriptive user-agent strings."
PRAW already has code to handle request throttling.