标签:www. oba import code http get tom install from
pip install selenium from selenium import webdriver browser=webdriver.Chrome() #Firefox() Safari() PhantomJS() browser.get("http://www.taobao.com") #进行操作 browser.close() #查找单个元素 element=browser.find_element_by_id("q") element=browser.find_element_by_css_selector("#q") element=browser.find_element(By.ID,"q") #查找多个元素 element=browser.find_element_by_css_selector("li") element=browser.find_element(By.CSS_SELECTOR,"li")
标签:www. oba import code http get tom install from
原文地址:https://www.cnblogs.com/liqunblog/p/9634932.html