修复了小红书无法获取子评的更多的错误

This commit is contained in:
xishandong 2023-09-09 16:49:12 +08:00
parent 70efcf29f2
commit b05b90f93a
3 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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,