Jason hace 2 años
padre
commit
304d9fa8c2
Se han modificado 2 ficheros con 4 adiciones y 3 borrados
  1. 2 1
      website_clickjobs/type-Y/_execute.py
  2. 2 2
      website_clickjobs/type-Y/drhuang.py

+ 2 - 1
website_clickjobs/type-Y/_execute.py

@@ -34,7 +34,8 @@ def process_one(term, target, n, confidential):
     try:
         print(term)
 
-        table=db['nda_log'] if confidential==1 else table
+        if confidential == 1:
+            table=db['nda_log']
 
         driver=restart_browser()
         # escaped_search_term=urllib.parse.quote(term)

+ 2 - 2
website_clickjobs/type-Y/drhuang.py

@@ -19,7 +19,7 @@ clickvideo = 2 # set to 1 to alert if video is found (DOES NOT CLICK!), requires
 if clickvideo == 1 or clickvideo == 2:
     while True:
         kw, target = pickvideo()
-        term = term + "推薦" if random.randint(0,3) < 2 else term
-        term = term + " 黃湘雲" if random.randint(0,3) < 2 else term
+        kw = kw + "推薦" if random.randint(0,3) < 2 else kw
+        kw = kw + " 黃湘雲" if random.randint(0,3) < 2 else kw
         process_one(kw, target, clickvideo, is_confidential)
         time.sleep(10)