Browse Source

跳过price为null的数据

yufeng0528 4 years ago
parent
commit
4d3cdd872b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      bbztx/get_data.py

+ 3 - 0
bbztx/get_data.py

@@ -61,6 +61,9 @@ def get_articles(filter):
61 61
         attr['country'] = other_info.get('country')
62 62
         attr['price'] = other_info.get('price').replace('元', '')
63 63
 
64
+        if attr['price'] == '':
65
+            continue
66
+
64 67
         attr['days'] = row['days']
65 68
         attr['recom'] = row['recom']
66 69
         attr['rank'] = row['rank']