Closed Auditormadness9 closed 1 year ago
This is either an error with your credentials or reddit is having issues. Does this happen with every request or intermittently?
You need to remove the r/
from the front of each subreddit in the list. Just "infinitewarfare"
instead of "r/infinitewarfare"
.
This issue is stale because it has been open for 30 days with no activity.
Remove the Stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stale for 30 days with no activity.
Describe the Bug
I am using PRAW library to access Reddit API in my Python project so that I could collect top 100 posts of the selected subreddits. However, I am encountering a Bad Request error (400 HTTP response) when trying to get the posts from a subreddit using the code. The error is in the Logs section.
Desired Result
It should crawl top 100 posts of each of the subreddits specified.
Code to reproduce the bug
The
Reddit()
initialization in my code example does not include the following parameters to prevent credential leakage:client_secret
,password
, orrefresh_token
.Relevant Logs
This code has previously worked as intended.
No
Operating System/Environment
Windows 11
Python Version
3.10
PRAW Version
7.6.1
Prawcore Version
2.3.0
Anything else?
No response