Bootstrap

python实现浏览器调取

调取浏览器 打开csdn 进行搜索

import time
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

driver.get("https://www.csdn.net/")
driver.find_element(By.ID, 'toolbar-search-input').send_keys('python')
driver.find_element(By.ID, 'toolbar-search-button').click()

time.sleep(60)
;