0

I am trying to extract gilded comments from reddit using PRAW library but receiving HTTP 400 code. I am using the following code snippet provided in the documentation:

for item in reddit.subreddit("test").gilded():
print(item.id)

from PRAW documentation: https://praw.readthedocs.io/en/stable/code_overview/models/subreddit.html#praw.models.Subreddit.gilded

After running I am getting:

266 if response.status_code in self.STATUS_EXCEPTIONS:
267     raise self.STATUS_EXCEPTIONS[response.status_code](response)
268 if response.status_code == codes["no_content"]:
269     return None
BadRequest: received 400 HTTP response

Is there any other way to do the same?

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.