1, selenium library
Import selenium # using selenium skip login '' ' selenium PIP the install selenium ' '' from selenium Import the webdriver webdriver.chrome ()
2, chromdiver plug
Selenium ROM Import the webdriver Import Time '' ' drives two ways browser ' '' # a first drive directly to the Script file search folder Driver = webdriver.Chrome () the time.sleep ( . 5 ) driver.close () # fill in the second drive path # webdriver.Chrome ( # r'C: \ the Users \ the Dell \ Downloads \ chromedriver.exe ')
3, summary
Today class time is not long, because of force majeure. But today I learned something other than python, using the finder shortcut keys command under mac system + shift + G to open the files through the absolute path