misc:chromedriver
Chromedriver
最新のChromedriverの探し方
- Go to the chromium official site.
- Move to the Downloads page.
- Follow the instructions for Dev or Canary channel.
- Select an appropriate architecture, for example, Mac OS X (64-bit).
- Find the file “LAST_CHANGE” with the Filter field on upper left of the page and download it.
- Find the folder named a number written in the “LAST_CHANGE” file.
- Download a driver file as “chromedriver_mac64.zip”.
Chromedriverの在処
- パッケージのインストール場所は
>>> import sys >>> sys.path ['', '/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python39.zip', '/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9', '/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/site-packages'] >>> import chromedriver_binary >>> chromedriver_binary.__file__ '/usr/local/lib/python3.9/site-packages/chromedriver_binary/__init__.py' >>>
% cd /usr/local/lib/python3.9/site-packages/chromedriver_binary/ kimi@Persimmon chromedriver_binary % ls -al total 34840 drwxr-xr-x 6 kimi admin 192 12 16 17:08 . drwxr-xr-x 198 kimi admin 6336 12 16 17:08 .. -rw-r--r-- 1 kimi admin 743 12 16 17:08 __init__.py drwxr-xr-x 4 kimi admin 128 12 16 17:08 __pycache__ -rwxr-xr-x 1 kimi admin 17822344 12 16 17:08 chromedriver -rw-r--r-- 1 kimi admin 4525 12 16 17:08 utils.py
- ここにDownloadしてきたファイルをコピーすればよい。
% mv chromedriver chromedriver.old % cp ~/Downloads/chromedriver_mac64/chromedriver . % ls __init__.py chromedriver utils.py __pycache__ chromedriver.old
misc/chromedriver.txt · 最終更新: 2022/12/19 10:13 by kimi