Sfoglia il codice sorgente

update 快手视频链接获取方式修改

lierqiang 2 anni fa
parent
commit
00e62a3d71
1 ha cambiato i file con 10 aggiunte e 9 eliminazioni
  1. 10 9
      kuaishou/kuaishou_follow/kuaishou_follow.py

+ 10 - 9
kuaishou/kuaishou_follow/kuaishou_follow.py

@@ -512,7 +512,7 @@ class Follow:
                             user_name = ''
                             user_name = ''
                             avatar_url = ''
                             avatar_url = ''
 
 
-                        video_url = feeds[i]['photoUrl']
+                        video_url = feeds[i]['photo']['photoUrl']
                         video_dict = {'video_title': video_title,
                         video_dict = {'video_title': video_title,
                                       'video_id': video_id,
                                       'video_id': video_id,
                                       'play_cnt': play_cnt,
                                       'play_cnt': play_cnt,
@@ -762,14 +762,15 @@ class Follow:
 
 
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":
-    Follow.get_videoList(log_type="follow",
-                         crawler="kuaishou",
-                         strategy="定向爬虫策略",
-                         our_uid="6282431",
-                         out_uid="3x3wsqjsxu5j6de",
-                         oss_endpoint="out",
-                         env="dev",
-                         machine="local")
+    pass
+    # Follow.get_videoList(log_type="follow",
+    #                      crawler="kuaishou",
+    #                      strategy="定向爬虫策略",
+    #                      our_uid="6282431",
+    #                      out_uid="3x3wsqjsxu5j6de",
+    #                      oss_endpoint="out",
+    #                      env="dev",
+    #                      machine="local")
 
 
     # print(Follow.get_out_user_info("follow", "kuaishou", "3xgh4ja9be3wcaw"))
     # print(Follow.get_out_user_info("follow", "kuaishou", "3xgh4ja9be3wcaw"))
     # print(Follow.get_out_user_info("follow", "kuaishou", "3x5wgjhfc7tx8ue"))
     # print(Follow.get_out_user_info("follow", "kuaishou", "3x5wgjhfc7tx8ue"))