Explorar el Código

Merge branch 'master' of http://git.choozmo.com:3000/choozmo/kw_tools

Jared hace 3 años
padre
commit
67a3194b02
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      choozmo/term_gsearch.py

+ 5 - 4
choozmo/term_gsearch.py

@@ -3,8 +3,10 @@ import sys
 import dataset
 import datetime
 
+
 db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/seo?charset=utf8mb4')
-table=db['term_gsearch']
+db_local = dataset.connect('mysql://root:jondae350@localhost:3306/db?charset=utf8mb4')
+table=db_local['test']
 
 
 driver=gsearch_general.restart_browser()
@@ -121,9 +123,8 @@ driver=gsearch_general.restart_browser()
 #idx=gsearch_general.process_query(driver,'聯絡我們 mail 磁磚',number_results=100,language_code='zh-TW')
 #idx=gsearch_general.process_query(driver,'聯絡我們 mail 命理',number_results=100,language_code='zh-TW')
 #idx=gsearch_general.process_query(driver,'聯絡我們 mail 改運',number_results=100,language_code='zh-TW')
-idx=gsearch_general.process_query(driver,'聯絡我們 mail 風水',number_results=100,language_code='zh-TW')
-
-#
+# idx=gsearch_general.process_query(driver,'聯絡我們 mail 風水',number_results=100,language_code='zh-TW')
+idx=gsearch_general.process_query(driver,'聯絡我們 mail 公益',number_results=100,language_code='zh-TW')