From b05b90f93a9150ad06886bafb57c789f63dd23cf Mon Sep 17 00:00:00 2001 From: xishandong Date: Sat, 9 Sep 2023 16:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=B0=8F=E7=BA=A2?= =?UTF-8?q?=E4=B9=A6=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E5=AD=90=E8=AF=84?= =?UTF-8?q?=E7=9A=84=E6=9B=B4=E5=A4=9A=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/crawlProject.iml | 2 +- .idea/misc.xml | 2 +- 进阶篇/js逆向/环境检测/RedBook/RedBook.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.idea/crawlProject.iml b/.idea/crawlProject.iml index d0876a7..78f2fb6 100644 --- a/.idea/crawlProject.iml +++ b/.idea/crawlProject.iml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 74cc75e..49a1c64 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/进阶篇/js逆向/环境检测/RedBook/RedBook.py b/进阶篇/js逆向/环境检测/RedBook/RedBook.py index eca3a4b..3fca414 100644 --- a/进阶篇/js逆向/环境检测/RedBook/RedBook.py +++ b/进阶篇/js逆向/环境检测/RedBook/RedBook.py @@ -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,