jared 1 gadu atpakaļ
vecāks
revīzija
3dc6293f8c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      deployment/test_random.py

+ 1 - 1
deployment/test_random.py

@@ -171,7 +171,7 @@ def run_once(jsobj):
             href=elmt.get_attribute('href')
             txt=elmt.text
 #            history.insert({'ranking':idx,'kw':kw,'results':numresults,'url':href,'title':txt})
-            if '坑殺' in txt or '侵占' in txt or '判決書' in txt or '強佔' in txt or '掏空' in txt or '送達公告' in txt or '違反勞動'in txt:
+            if '坑殺' in txt or '侵占' in txt or '判決書' in txt or '強佔' in txt or '掏空' in txt or '送達公告' in txt or '違反勞動'in txt or '不倫' in txt or '開房' in txt  or '摩鐵' in txt:
                 neg_count+=1
                 neg_total+=idx
             if len(txt)>10: