Skip to content

Commit faa080f

Browse files
committed
1.19
1 parent a6c34b8 commit faa080f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

zhihu.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ def get_followees(self):
481481
'Host': "www.zhihu.com",
482482
'Referer': followee_url
483483
}
484-
r = s.post(post_url, data = data, headers = header)
485-
followee_list = r.json()["msg"]
484+
r_post = s.post(post_url, data = data, headers = header)
485+
followee_list = r_post.json()["msg"]
486486
for j in range(min(followees_num - i * 20, 20)):
487487
followee_soup = BeautifulSoup(followee_list[j])
488488
user_link = followee_soup.find("h2", class_ = "zm-list-content-title").a
@@ -529,8 +529,8 @@ def get_followers(self):
529529
'Host': "www.zhihu.com",
530530
'Referer': follower_url
531531
}
532-
r = s.post(post_url, data = data, headers = header)
533-
follower_list = r.json()["msg"]
532+
r_post = s.post(post_url, data = data, headers = header)
533+
follower_list = r_post.json()["msg"]
534534
for j in range(min(followers_num - i * 20, 20)):
535535
follower_soup = BeautifulSoup(follower_list[j])
536536
user_link = follower_soup.find("h2", class_ = "zm-list-content-title").a

0 commit comments

Comments
 (0)