0
点赞
收藏
分享

微信扫一扫

DeprecationWarning: use options instead of chrome_options

萧萧雨潇潇 2022-04-05 阅读 75
python

  解决办法:

#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author: Roc-xb
"""
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

if __name__ == '__main__':
    chrome_options = Options()
    chrome_options.add_argument('--headless')
    driver = webdriver.Chrome(options=chrome_options)
举报

相关推荐

0 条评论