Traceback (most recent call last):
File "/path/to/download_media_from_page.py", line 10, in <module>
from seleniumwire import webdriver as wire_webdriver
ModuleNotFoundError: No module named 'seleniumwire'
$ pip install selenium selenium-wire
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Requirement already satisfied: selenium in /usr/local/lib/python3.9/site-packages (4.21.0)
Collecting selenium-wire
Downloading selenium_wire-5.1.0-py3-none-any.whl.metadata (49 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.4/49.4 kB 117.3 kB/s eta 0:00:00
Requirement already satisfied: urllib3<3,>=1.26 in /usr/local/lib/python3.9/site-packages (from urllib3[socks]<3,>=1.26->selenium) (2.2.1)
Requirement already satisfied: trio~=0.17 in /usr/local/lib/python3.9/site-packages (from selenium) (0.25.1)
Requirement already satisfied: trio-websocket~=0.9 in /usr/local/lib/python3.9/site-packages (from selenium) (0.11.1)
Requirement already satisfied: certifi>=2021.10.8 in /usr/local/lib/python3.9/site-packages (from selenium) (2024.2.2)
Requirement already satisfied: typing_extensions>=4.9.0 in /usr/local/lib/python3.9/site-packages (from selenium) (4.11.0)
Collecting blinker>=1.4 (from selenium-wire)
Downloading blinker-1.8.2-py3-none-any.whl.metadata (1.6 kB)
Collecting brotli>=1.0.9 (from selenium-wire)
Downloading Brotli-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl.metadata (5.5 kB)
Collecting kaitaistruct>=0.7 (from selenium-wire)
Downloading kaitaistruct-0.10-py2.py3-none-any.whl.metadata (2.5 kB)
Collecting pyasn1>=0.3.1 (from selenium-wire)
Downloading pyasn1-0.6.0-py2.py3-none-any.whl.metadata (8.3 kB)
Collecting pyOpenSSL>=22.0.0 (from selenium-wire)
Downloading pyOpenSSL-24.1.0-py3-none-any.whl.metadata (12 kB)
Collecting pyparsing>=2.4.2 (from selenium-wire)
Downloading pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)
Requirement already satisfied: pysocks>=1.7.1 in /usr/local/lib/python3.9/site-packages (from selenium-wire) (1.7.1)
Requirement already satisfied: wsproto>=0.14 in /usr/local/lib/python3.9/site-packages (from selenium-wire) (1.2.0)
Collecting zstandard>=0.14.1 (from selenium-wire)
Downloading zstandard-0.22.0-cp39-cp39-macosx_10_9_x86_64.whl.metadata (2.9 kB)
Collecting h2>=4.0 (from selenium-wire)
Downloading h2-4.1.0-py3-none-any.whl.metadata (3.6 kB)
Collecting hyperframe>=6.0 (from selenium-wire)
Downloading hyperframe-6.0.1-py3-none-any.whl.metadata (2.7 kB)
Collecting hpack<5,>=4.0 (from h2>=4.0->selenium-wire)
Downloading hpack-4.0.0-py3-none-any.whl.metadata (2.5 kB)
Collecting cryptography<43,>=41.0.5 (from pyOpenSSL>=22.0.0->selenium-wire)
Downloading cryptography-42.0.7-cp39-abi3-macosx_10_12_universal2.whl.metadata (5.3 kB)
Requirement already satisfied: attrs>=23.2.0 in /usr/local/lib/python3.9/site-packages (from trio~=0.17->selenium) (23.2.0)
Requirement already satisfied: sortedcontainers in /usr/local/lib/python3.9/site-packages (from trio~=0.17->selenium) (2.4.0)
Requirement already satisfied: idna in /usr/local/lib/python3.9/site-packages (from trio~=0.17->selenium) (2.10)
Requirement already satisfied: outcome in /usr/local/lib/python3.9/site-packages (from trio~=0.17->selenium) (1.3.0.post0)
Requirement already satisfied: sniffio>=1.3.0 in /usr/local/lib/python3.9/site-packages (from trio~=0.17->selenium) (1.3.1)
Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.9/site-packages (from trio~=0.17->selenium) (1.2.1)
Requirement already satisfied: h11<1,>=0.9.0 in /usr/local/lib/python3.9/site-packages (from wsproto>=0.14->selenium-wire) (0.9.0)
Collecting cffi>=1.12 (from cryptography<43,>=41.0.5->pyOpenSSL>=22.0.0->selenium-wire)
Downloading cffi-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.12->cryptography<43,>=41.0.5->pyOpenSSL>=22.0.0->selenium-wire)
Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Downloading selenium_wire-5.1.0-py3-none-any.whl (239 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.6/239.6 kB 473.5 kB/s eta 0:00:00
Downloading blinker-1.8.2-py3-none-any.whl (9.5 kB)
Downloading Brotli-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl (446 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.2/446.2 kB 1.5 MB/s eta 0:00:00
Downloading h2-4.1.0-py3-none-any.whl (57 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.5/57.5 kB 4.5 MB/s eta 0:00:00
Downloading hyperframe-6.0.1-py3-none-any.whl (12 kB)
Downloading kaitaistruct-0.10-py2.py3-none-any.whl (7.0 kB)
Downloading pyasn1-0.6.0-py2.py3-none-any.whl (85 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.3/85.3 kB 1.5 MB/s eta 0:00:00
Downloading pyOpenSSL-24.1.0-py3-none-any.whl (56 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.9/56.9 kB 1.7 MB/s eta 0:00:00
Downloading pyparsing-3.1.2-py3-none-any.whl (103 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.2/103.2 kB 1.8 MB/s eta 0:00:00
Downloading zstandard-0.22.0-cp39-cp39-macosx_10_9_x86_64.whl (920 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 920.9/920.9 kB 452.8 kB/s eta 0:00:00
Downloading cryptography-42.0.7-cp39-abi3-macosx_10_12_universal2.whl (5.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.9/5.9 MB 220.5 kB/s eta 0:00:00
Downloading hpack-4.0.0-py3-none-any.whl (32 kB)
Downloading cffi-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl (182 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 182.5/182.5 kB 534.6 kB/s eta 0:00:00
Downloading pycparser-2.22-py3-none-any.whl (117 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.6/117.6 kB 479.2 kB/s eta 0:00:00
Installing collected packages: brotli, zstandard, pyparsing, pycparser, pyasn1, kaitaistruct, hyperframe, hpack, blinker, h2, cffi, cryptography, pyOpenSSL, selenium-wire
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Attempting uninstall: hyperframe
Found existing installation: hyperframe 5.2.0
Uninstalling hyperframe-5.2.0:
Successfully uninstalled hyperframe-5.2.0
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Attempting uninstall: hpack
Found existing installation: hpack 3.0.0
Uninstalling hpack-3.0.0:
Successfully uninstalled hpack-3.0.0
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Attempting uninstall: h2
Found existing installation: h2 3.2.0
Uninstalling h2-3.2.0:
Successfully uninstalled h2-3.2.0
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
httpcore 0.9.1 requires h2==3.*, but you have h2 4.1.0 which is incompatible.
Successfully installed blinker-1.8.2 brotli-1.1.0 cffi-1.16.0 cryptography-42.0.7 h2-4.1.0 hpack-4.0.0 hyperframe-6.0.1 kaitaistruct-0.10 pyOpenSSL-24.1.0 pyasn1-0.6.0 pycparser-2.22 pyparsing-3.1.2 selenium-wire-5.1.0 zstandard-0.22.0