Use the selenium module tool webdriver.
Explains how to open any page of chrome using webdriver.
** ① Download "chrmoedriver.exe" **
> From the Current stable release link |
---|
You can specify it by path, but save it in the same folder for simplification.
python
from selenium import webdriver
browser = webdriver.Chrome('chromedriver.exe')
url = 'https://qiita.com/'
browser.get(url)
That's it.
●from selenium import webdriver
Install webdriver for selenium module
●browser = webdriver.Chrome('chromedriver.exe')
Launch chrome with webdriver
●url = 'https://qiita.com/'
Specify the URL. Here is the qiita top page.
●browser.get(url)
Open the url specified by the get method
「webdriver.Chrome('chromedriver.exe').get('https://qiita.com/')」
Recommended Posts