|
@@ -139,6 +139,8 @@ def selenium_jared_click():
|
|
|
print('搜尋結果數量',numresults)
|
|
|
if numresults<=0:
|
|
|
print(elmts)
|
|
|
+ table=db['seo_jobs_ranking_jared']
|
|
|
+
|
|
|
cnt=1
|
|
|
for elmt in elmts:
|
|
|
href=elmt.get_attribute('href')
|
|
@@ -154,7 +156,7 @@ def selenium_jared_click():
|
|
|
webdriver.ActionChains(driver).move_to_element(elmt).click().perform()
|
|
|
print(domain)
|
|
|
print(href)
|
|
|
- table=db['seo_jobs_ranking_jared']
|
|
|
+ print('ranking'+str(cnt))
|
|
|
table.insert({'ranking':cnt,'kw':kw,'results':numresults,'url':href,'title':txt})
|
|
|
|
|
|
driver.quit()
|