zooeytsai 3 năm trước cách đây
mục cha
commit
253b7feee9
1 tập tin đã thay đổi với 5 bổ sung4 xóa
  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')