Skip to content

Commit

Permalink
Replace resources link, content has been moved
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierRLopes committed Feb 23, 2021
1 parent 8378223 commit ecf54fa
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions res_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def print_research():
""" Print help """

print("\nResearch Mode:")
print("\nResearch Mode:")
print(" help show this fundamental analysis menu again")
print(" q quit this menu, and shows back to main menu")
print(" quit quit to abandon program")
Expand All @@ -30,7 +30,7 @@ def print_research():
print(" macrotrends www.macrotrends.net")
print(" newsfilter www.newsfilter.io")
print("")
print(" resources www.tradinganalysisresources.com")
print(" resources trading analysis, tips and research")
print("")
return

Expand All @@ -41,7 +41,7 @@ def res_menu(s_ticker):
# Add list of arguments that the research parser accepts
res_parser = argparse.ArgumentParser(prog='discovery', add_help=False)
res_parser.add_argument('cmd', choices=['help', 'q', 'quit',
'macroaxis', 'yahoo', 'finviz', 'marketwatch', 'fool', 'businessinsider',
'macroaxis', 'yahoo', 'finviz', 'marketwatch', 'fool', 'businessinsider',
'fmp', 'fidelity', 'tradingview', 'marketchameleon', 'stockrow', 'barchart',
'grufity', 'fintel', 'zacks', 'macrotrends', 'newsfilter', 'resources'])

Expand All @@ -51,15 +51,15 @@ def res_menu(s_ticker):
while True:
# Get input command from user
as_input = input('> ')

# Parse fundamental analysis command of the list of possible commands
try:
(ns_known_args, l_args) = res_parser.parse_known_args(as_input.split())

except SystemExit:
print("The command selected doesn't exist\n")
continue

if ns_known_args.cmd == 'help':
print_research()

Expand Down Expand Up @@ -106,7 +106,7 @@ def res_menu(s_ticker):
except SystemExit:
print("")
return

# ------------------------------------------------------------------------------------------------------------
elif ns_known_args.cmd == 'fool':
try:
Expand Down Expand Up @@ -205,7 +205,7 @@ def res_menu(s_ticker):
except SystemExit:
print("")
return

# ------------------------------------------------------------------------------------------------------------
elif ns_known_args.cmd == 'macrotrends':
try:
Expand All @@ -227,7 +227,9 @@ def res_menu(s_ticker):
# ------------------------------------------------------------------------------------------------------------
elif ns_known_args.cmd == 'resources':
try:
webbrowser.open(f"https://www.tradinganalysisresources.com/2020/05/free-references-and-resources.html")
#webbrowser.open(f"https://www.tradinganalysisresources.com/2020/05/free-references-and-resources.html")
webbrowser.open(f"https://moongangcapital.com/free-stock-market-resources/")

print("")
except SystemExit:
print("")
Expand Down

0 comments on commit ecf54fa

Please sign in to comment.