Closed MatteoRaso closed 11 months ago
When attempting to use
reddit.subreddit(sub_name).hot(time_filter="week")
I get the following error:
TypeError: ListingGenerator.__init__() got an unexpected keyword argument 'time_filter'
This doesn't happen when I switch hot to top.
hot
top
The hot method should have a time filter.
.subreddit("gaming").hot(time_filter="week")
Reddit()
client_secret, password, or refresh_token.
client_secret
password
refresh_token
: ListingGenerator.__init__() got an unexpected keyword argument 'time_filter'
Not sure, I haven't used this code before.
Linux Mint 21.2
3.11.5
7.7.1
2.4.0
No response
hot() does not accept the time_filter argument. See the docs here: https://praw.readthedocs.io/en/stable/code_overview/models/subreddit.html#praw.models.Subreddit.hot
hot()
time_filter
Describe the Bug
When attempting to use
reddit.subreddit(sub_name).hot(time_filter="week")
I get the following error:
TypeError: ListingGenerator.__init__() got an unexpected keyword argument 'time_filter'
This doesn't happen when I switch
hot
totop
.Desired Result
The
hot
method should have a time filter.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.
Not sure, I haven't used this code before.
Operating System/Environment
Linux Mint 21.2
Python Version
3.11.5
PRAW Version
7.7.1
Prawcore Version
2.4.0
Anything else?
No response