Skip to main content

chrome-proxy

安装

pip install chrome-proxy -U 

启动代理

# 正常模式
chrome-proxy
# 无头模式
chrome-proxy --headless

使用

from selenium import webdriver

options = webdriver.ChromeOptions()
# 本地
# options.debugger_address = "127.0.0.1:9222"
# 远程
options.debugger_address = "192.168.100.156:9223"
driver = webdriver.Chrome(options=options)
driver.get("https://www.baidu.com")
print(driver.title)

Release files for chrome-proxy 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chrome-proxy 1.0.2
File Size Uploaded
chrome_proxy-1.0.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chrome-proxy 1.0.2
File Interpreter ABI Platform
chrome_proxy-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / chrome_proxy-1.0.2.tar.gz

Download URL chrome_proxy-1.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
83b954623741e81d52f9d0f76b5e7f61f60052853bee66d563d892079c21dc6c
BLAKE2b-256 checksum
How to use checksums
7e9dd210d84332ce389fe8d95b16022b1d8a88bb32ba25003924a63853df13ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release files / chrome_proxy-1.0.2-py3-none-any.whl

Download URL chrome_proxy-1.0.2-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2eb8f18c114cee5bdf0e75a7e6cb5ab65e4f1e5c3a805046cf4cacf389ca5bf1
BLAKE2b-256 checksum
How to use checksums
104aca5afe5245b085baccb0d19e6b359e3ec37e95aa133612298958fc6c67e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page