|
@@ -8,7 +8,14 @@ import searchconsole
|
|
|
import dataset
|
|
|
import datetime
|
|
|
import time
|
|
|
-account = searchconsole.authenticate(client_config='c:/keys/service/client_secret.json',credentials='c:/keys/service/credentials.json')
|
|
|
+
|
|
|
+
|
|
|
+fname=os.path.abspath(__file__)
|
|
|
+elmts=fname.split(os.path.sep)
|
|
|
+path2=os.path.sep.join(elmts[0:-1])
|
|
|
+keysdir=path2+os.path.sep+'keys'+os.path.sep
|
|
|
+
|
|
|
+account = searchconsole.authenticate(client_config=keysdir+'client_secret.json',credentials=keysdir+'credentials.json')
|
|
|
webproperty = account['https://hhh.com.tw/']
|
|
|
|
|
|
#db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/hhh?charset=utf8mb4')
|