|
@@ -207,7 +207,7 @@ def run_once(jsobj):
|
|
|
webdriver.ActionChains(driver).move_to_element(clickelmt).click().perform()
|
|
|
print('clicked...')
|
|
|
table.insert({'ranking':clickidx,'kw':kw,'results':numresults,'url':clickhref,'title':clicktitle,'avg_neg':negstr})
|
|
|
- time.sleep(80)
|
|
|
+ time.sleep(6)
|
|
|
print('sleep 6')
|
|
|
return
|
|
|
|
|
@@ -248,6 +248,7 @@ entry={'cust':'啟翔',
|
|
|
'postfix':'',
|
|
|
'domain':['job/3uhrh'],
|
|
|
'positive':['']}
|
|
|
+entries.append(entry)
|
|
|
entry={'cust':'啟翔',
|
|
|
'plan':'文章',
|
|
|
'prefix':'',
|
|
@@ -255,6 +256,7 @@ entry={'cust':'啟翔',
|
|
|
'postfix':'',
|
|
|
'domain':['100078739363391'],
|
|
|
'positive':['']}
|
|
|
+entries.append(entry)
|
|
|
entry={'cust':'啟翔',
|
|
|
'plan':'文章',
|
|
|
'prefix':'',
|
|
@@ -262,14 +264,17 @@ entry={'cust':'啟翔',
|
|
|
'postfix':'',
|
|
|
'domain':['job/7wih0'],
|
|
|
'positive':['']}
|
|
|
-
|
|
|
-
|
|
|
entries.append(entry)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+entry={'cust':'加百裕',
|
|
|
+ 'plan':'文章',
|
|
|
+ 'prefix':'',
|
|
|
+ 'kw':'黃靖容中醫',
|
|
|
+ 'postfix':'',
|
|
|
+ 'domain':['web.csh.org.tw'],
|
|
|
+ 'positive':['']}
|
|
|
entries.append(entry)
|
|
|
|
|
|
+
|
|
|
entry=random.choice(entries)
|
|
|
|
|
|
|