1 #-*- coding: UTF-8 -*- 2 #coding==utf-8 3 #from selenium.webdriver.support.wait import WebDriverWait 4 from selenium import webdriver 5 from time import sleep 6 7 if __name__=="__main__": 8 driver = webdriver.Chrome() 9 driver.get("http://www.dytt8.net/html/dongman/new/20150111/47110.html") 10 11 links = driver.find_element_by_id("Zoom").find_elements_by_tag_name("a") 12 print(links) 13 14 for link in links: 15 print(link.text)