1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| from selenium import webdriver
driverfile_path = r'C:\Users\zx\AppData\Local\Programs\Python\Python36-32\msedgedriver.exe' one_driver = webdriver.Edge(executable_path=driverfile_path)
one_driver.get(url)
.find_elements_by_tag_name('td') .find_elements_by_class_name('result-row') .get_attribute("src") .text
one_driver.quit()
|