From d76c5437add636bfc8666383c437e7307c01681d Mon Sep 17 00:00:00 2001 From: didier Date: Thu, 22 Apr 2021 22:52:12 +0100 Subject: [PATCH] Fix op/info command, although browser needs to pop up --- gamestonk_terminal/options/op_scrape_view.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gamestonk_terminal/options/op_scrape_view.py b/gamestonk_terminal/options/op_scrape_view.py index 40bb5e1e0f9..7b9ee996fdf 100644 --- a/gamestonk_terminal/options/op_scrape_view.py +++ b/gamestonk_terminal/options/op_scrape_view.py @@ -63,14 +63,16 @@ def print_options_data(stock: str, other_args: List[str]): try: if browser == "chrome": - options = cOpts() - options.headless = True - driver = webdriver.Chrome(options=options, executable_path=path_to_driver) + # commenting this because it breaks when in usage + # the downside is that the browser will pop up to get the data + driver = webdriver.Chrome(executable_path=path_to_driver) elif browser == "firefox": - options = fOpts() - options.headless = True - driver = webdriver.Firefox(options=options, executable_path=path_to_driver) + # commenting this because it breaks when in usage + # the downside is that the browser will pop up to get the data + #options = fOpts() + #options.headless = True + driver = webdriver.Firefox(executable_path=path_to_driver) page = f"https://www.barchart.com/stocks/quotes/{stock}/overview" driver.get(page)