Skip to content

Commit f320b3d

Browse files
committed
Remove commented out code
1 parent ffe5139 commit f320b3d

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

Trading/stock/gurufocus/cli.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515

1616
# DEBUG=true cli.py analyze --names '["pdco", "paypal", "johnson&johnson", "mcdonalds", "pepsi", "uniper", "palantir"]'
1717
class GuruFocusCLI(Named, JsonFileWriter):
18-
def __init__(self, name: Optional[str] = None, names: Optional[List[str]] = None, filename: Optional[str] = None):
18+
def __init__(
19+
self,
20+
name: Optional[str] = None,
21+
names: Optional[List[str]] = None,
22+
filename: Optional[str] = None,
23+
):
1924
Named.__init__(self, name=name, names=names)
2025
if filename is None:
2126
filename = GURUFOCUS_DOWNLOADS_PATH / "gurufocus.json"
@@ -34,18 +39,7 @@ def analyze(self):
3439

3540
gf_analyzer = GurufocusAnalyzer(self.json_file_writer)
3641
gf_analyzer.run(items=urls, data={})
37-
# for url in urls:
38-
# LOGGER.info(f"Scraping {url}")
39-
# download_html(url, filename="gurufocus_page.html")
40-
# html_file_path = "gurufocus_page.html"
41-
# stock_info = extract_stock_info(html_file_path)
42-
# if os.path.exists(html_file_path):
43-
# os.remove(html_file_path)
44-
# if not stock_info:
45-
# LOGGER.error(f"Failed to extract stock info from {url}")
46-
# continue
47-
# LOGGER.info(stock_info)
48-
# time.sleep(0.1)
42+
4943

5044
if __name__ == "__main__":
5145
fire.Fire(GuruFocusCLI)

0 commit comments

Comments
 (0)