SST Lab Dokuwiki Header header picture

ユーザ用ツール

サイト用ツール


misc:chromedriver

Chromedriver

最新のChromedriverの探し方

  1. Move to the Downloads page.
  2. Select an appropriate architecture, for example, Mac OS X (64-bit).
  3. Find the file “LAST_CHANGE” with the Filter field on upper left of the page and download it.
  4. Find the folder named a number written in the “LAST_CHANGE” file.
  5. Download a driver file as “chromedriver_mac64.zip”.

Chromedriverの在処

  1. パッケージのインストール場所は
    >>> 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
  2. ここに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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki