【文件属性】:
文件名称:chrome_remote_interface_python:适用于Python的Chrome调试协议接口
文件大小:75KB
文件格式:ZIP
更新时间:2021-02-01 19:19:34
python chrome chrome-debugging-protocol ChromePython
chrome-remote-interface-python
接口,可通过使用简单的Python API提供命令和通知的简单抽象来帮助检测Chrome(或任何其他合适的)。
此模块是许多。
目前仅适用于Python 3.5
示例API使用情况
以下代码段加载https://github.com并显示每个响应正文长度:
import asyncio
import chrome_remote_interface
if __name__ == '__main__' :
class callbacks :
async def start ( tabs ):
await tabs . add ()
async def tab_start ( tabs , tab ):
await tab . Page . enable ()
await tab . Network . enable ()
await tab . Page . navigate ( url
【文件预览】:
chrome_remote_interface_python-master
----chrome_remote_interface()
--------__init__.py(468B)
--------protocol.json(556KB)
--------basic_addons.py(44KB)
--------library.py(39KB)
----requirements.txt(46B)
----LICENSE.md(1KB)
----setup.py(451B)
----README.md(6KB)
----.gitignore(1KB)
----example.py(1KB)