zhangyong 8 months ago
parent
commit
4f64d85695
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data_channel/sph_crawling_data.py

+ 2 - 1
data_channel/sph_crawling_data.py

@@ -76,7 +76,8 @@ class SphHistory:
                             time.sleep(random.randint(0, 1))
                             video_obj = response.json()
                             video_url = video_obj.get('DownloadAddress')
-                            duration = dataHelp.video_duration(video_url)
+                            duration = video_obj.get('play_len')
+                            # duration = dataHelp.video_duration(video_url)
                             cover = video_obj.get('thumb_url')
                             if len(video_url) == 0:
                                 continue