Skip to content

Commit

Permalink
Remove selenium (OpenBB-finance#2898)
Browse files Browse the repository at this point in the history
* Removed selenium dependency

* Removed unused file

Co-authored-by: James Maslek <jmaslek11@gmail.com>
  • Loading branch information
colin99d and jmaslek authored Oct 18, 2022
1 parent 84b0435 commit 99fc1be
Show file tree
Hide file tree
Showing 7 changed files with 2,180 additions and 646 deletions.
140 changes: 0 additions & 140 deletions custom_pre_commit/check_config_terminal.py

This file was deleted.

18 changes: 0 additions & 18 deletions jupyterlab/openbb-settings/schema/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,6 @@
"description": "Path to the terminal.py",
"default": "terminal.py",
"value": ""
},
"PATH_TO_SELENIUM_DRIVER":
{
"type": "string",
"form": "text",
"title": "Path to webdriver",
"description": "Path to the selenium driver",
"default": "",
"value": ""
},
"WEBDRIVER_TO_USE":
{
"type": "string",
"form": "text",
"title": "Webdriver",
"description": "Selenium browser drivers can be found at https://selenium-python.readthedocs.io/installation.html",
"default": "chrome",
"value": ""
}
}
},
Expand Down
1 change: 0 additions & 1 deletion openbb_terminal/economy/finviz_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def get_performance_map(period: str = "1d", map_filter: str = "sp500"):
# Conversion from period and type, to fit url requirements
d_period = {"1d": "", "1w": "w1", "1m": "w4", "3m": "w13", "6m": "w26", "1y": "w52"}
d_type = {"sp500": "sec", "world": "geo", "full": "sec_all", "etf": "etf"}
# TODO: Try to get this image and output it instead of opening browser
url = f"https://finviz.com/map.ashx?t={d_type[map_filter]}&st={d_period[period]}"
webbrowser.open(url)
console.print("")
Expand Down
Loading

0 comments on commit 99fc1be

Please sign in to comment.