comment爬取求教 #922
Unanswered
AMD7900XTX
asked this question in
Q&A
comment爬取求教
#922
Replies: 1 comment
-
本来想将list存入文件,然后再依次读取list中的元素,不把list放在缓存区,但找了一圈没有依次读取文件中list的元素的好办法 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
非科班、未系统学习过计算机相关知识,故寻求帮助(非伸手党,提供思路即可)
爬取的内容呈现以下形式:
和示例一样,利用get_conments_lazy 和 get_subcomments 时会将结果保存为list,之后再用
的形式依次输出评论相关内容,但在面对数万条评论时,这种方式会占用大量内存最后崩溃,有没有什么好的解决方法?
Beta Was this translation helpful? Give feedback.
All reactions