mac selenium 连接已经打开的chrome浏览器
今天在mac环境下尝试了一下用selenium连接现有的服务器,本来想绕过某宝的反爬虫机制的,但是并没有什么用,但是这个技术不错,我这里分享一下实现过程。添加环境变量export PATH="/Applications/Google Chrome.app/Contents/MacOS:$PATH"把上面的这一句添加到bashrc中,我的是zshrc,然后激活环境:source ~/.zshrc然后打开chrome:Google\ Chrome --remote-debugging
原创
2020-05-10 10:18:38 ·
4964 阅读 ·
7 评论