python - 为 Reddit 提取所有可能的用户评论
问题描述
我正在尝试对特定的 reddit 链接进行情绪分析
url = 'https://www.reddit.com/r/LegendsOfRuneterra/comments/gqdwy2/patch_12_discussion_megathread/'
sub = reddit.submission(url = url)
comments = [comment.body for comment in sub.comments if hasattr(comment, "body")]
print(comments)
1)代码有效,但评论看起来太少了。我想知道我是不是做错了什么?2) 似乎也有一个自然限制,比如 1000 条评论?如何提取所有数据?
解决方案
推荐阅读
- typo3 - 如何将图像添加到 Typo3 中的默认布局?
- android - 房间数据库中对象列表的类型转换器
- node.js - 尝试运行刚刚建立的服务器时找不到 manifest.json 404
- ios - onesignal警报通知在ios中打开通知后强制关闭
- javascript - MongoDB:获取最近五分钟内新增用户的列表
- vue.js - 为什么 Vuex-persist 不在 localStorage 中存储任何内容?
- c# - MVC 后集合作为没有有序索引的模型
- asp.net-core - 当 nopcommerce 4.2 重新启动应用程序时,Visual Studio 2017 停止
- python - 如何将存储在 sqlite 中的图像显示到 tkinter 窗口中
- sql-server - 数据库的 MSSQL 用户