PyQt/partner_625781186/14.多进程爬虫/README.md
2018-09-05 15:50:32 +08:00

16 lines
No EOL
436 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# QWebEngineView 开启控制台
需要在 设置环境变量 并在浏览器中访问 因为访问的是网页 ,并且扩展工具选择页面元素 会加一个 动态高亮的样式类 所以可以用这个方法 来获取页面 元素的html相关属性元素。
```python
if __name__ == "__main__":
...
import os
os.environ["QTWEBENGINE_REMOTE_DEBUGGING"] = "9000"
...
```
![1](ScreenShot/1.gif)