mirror of
https://github.com/xishandong/crawlProject.git
synced 2024-11-25 16:34:42 +08:00
修复了小红书无法获取子评的更多的错误
This commit is contained in:
parent
70efcf29f2
commit
b05b90f93a
@ -2,7 +2,7 @@
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="jdk" jdkName="crawl" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="crawlProjects" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="crawl" project-jdk-type="Python SDK" />
|
||||
</project>
|
@ -391,7 +391,7 @@ class RedBook:
|
||||
def more_comments(self, cursor, note_id, root_id):
|
||||
continuations = [cursor]
|
||||
url = URLS[11]
|
||||
e = '/api/sns/web/v2/comment/sub/page'
|
||||
e = '/api/sns/web/v2/comment/sub/page?'
|
||||
while continuations:
|
||||
continuation = continuations.pop()
|
||||
params = {
|
||||
@ -441,7 +441,7 @@ class RedBook:
|
||||
sub_comment_cursor = comment.get('sub_comment_cursor')
|
||||
note_id = note_id
|
||||
root_comment_id = root_id
|
||||
self.more_comments(sub_comment_cursor, note_id, root_comment_id)
|
||||
yield from self.more_comments(sub_comment_cursor, note_id, root_comment_id)
|
||||
item = {
|
||||
'target_comment': target_comment,
|
||||
'id': id,
|
||||
|
Loading…
Reference in New Issue
Block a user