### 1.环境配置
- Ubuntu16.04
- python3
- Chrome以及与之对应的chromedriver
- Selenium
版本参考:chromedriver下载地址
2.代码
1.在selenium中使用代理,在Ubuntu中设置sock5代理端口1
2
3from selenium.webdriver.chrome.options import Options
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=socks5://127.0.0.1:1080')
2.爬虫类