|
@@ -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')
|
|
|
|
|
|
|
|
|
|