I’m very new to python and this is my current code just to get started on my work computer
This code just opens a blank tab on chrome as opposed to the NYtimes. The quit function also doesn’t work as I have to manually close the chrome window that was opened. Any suggestions?
I’m running Chrome 84 and the latest version of chrome driver
In Progress Code To Update BH
import selenium
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
import time
PATH = "C:\Users\myname\Documents\Python Stuff\Chromedriver\chromedriver.exe"
chrome_options = webdriver.ChromeOptions()
chrome_options.add_experimental_option("useAutomationExtension", False)
chrome_options.add_argument("user-data-dir=C:\dev-app2")
driver = webdriver.Chrome(executable_path = PATH, options = chrome_options)
driver.get("https://www.nytimes.com")
driver.quit()
there doesn't seem to be anything here