I am trying to apt this code that I found on Github But I get an error saying:
firefox_profile has been deprecated, please use an Options object. self.profile = webdriver.FirefoxProfile()
'''
def __init__(self, items):
self.amazon_url = "https://www.amazon.com/"
self.items = items
self.profile = webdriver.FirefoxProfile()
self.options = Options()
#self.options.add_argument("--headless")
self.driver = webdriver.Firefox(firefox_profile=self.profile,
firefox_options=self.options)
'''
I know this is due to the new version of selenium. But since I am new to this I could not figure out what I needed to change. Any help is greatly appreciated! full code is here