File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments