最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - scraping gilded comments using PRAW from reddit - Stack Overflow

programmeradmin4浏览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: .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)

  1. 暂无评论