|
@@ -46,6 +46,8 @@ class SphKeyword:
|
|
|
items = data['items'][0]
|
|
|
video_id = data["boxID"]
|
|
|
duration = items["duration"]
|
|
|
+ if duration == '' or duration == None:
|
|
|
+ duration = "00:01"
|
|
|
duration = cls.time_str_to_seconds(duration)
|
|
|
digg_count = items.get('likeNum', "0")
|
|
|
if digg_count == '10万+':
|
|
@@ -84,4 +86,4 @@ class SphKeyword:
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- SphKeyword.get_key_word('iphone手机', '', '', '', '')
|
|
|
+ SphKeyword.get_key_word('最有钱的地方', '', '', '', '')
|