selenium use options instead of chrome_options code example
Example: DeprecationWarning: use options instead of chrome_options
options = webdriver.ChromeOptions()
options.add_argument('--headless')
driver = webdriver.Chrome(executable_path=r'C:\chromedriver_win32\chromedriver.exe', options=options)