zhangyong il y a 7 mois
Parent
commit
90284eb08b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      data_channel/sph_keyword.py

+ 2 - 0
data_channel/sph_keyword.py

@@ -48,6 +48,8 @@ class SphKeyword:
                 duration = items["duration"]
                 duration = cls.time_str_to_seconds(duration)
                 digg_count = items.get('likeNum', "0")
+                if digg_count == '10万+':
+                    digg_count = '100000'
                 old_title =items.get('title', "")
                 old_title = re.sub(r'<em.*?>.*?</em>', '', old_title)
                 cover_url = items["image"]