|
@@ -16,8 +16,8 @@ import dataset
|
|
|
import time
|
|
|
import traceback
|
|
|
import sys
|
|
|
-
|
|
|
import fire
|
|
|
+from INNNews import notifytest
|
|
|
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/seo?charset=utf8mb4')
|
|
|
table=db['general_log']
|
|
@@ -53,7 +53,7 @@ def process_query(qs):
|
|
|
driver.get(googleurl)
|
|
|
time.sleep(6)
|
|
|
|
|
|
- elmts=driver.find_elements_by_xpath("//div[@class='yuRUbf']/a")
|
|
|
+ elmts=driver.find_elements(By.XPATH,"//div[@class='yuRUbf']/a")
|
|
|
|
|
|
idx=1
|
|
|
ranking=-1
|
|
@@ -112,6 +112,7 @@ class JParams(object):
|
|
|
print(domain)
|
|
|
run_once( (kw,domain) )
|
|
|
|
|
|
+
|
|
|
if __name__ == '__main__':
|
|
|
fire.Fire(JParams)
|
|
|
|