def open_link(url, name_of_link):
  try:
    # If possible, open in a new tab, and raise the window to the front
    webbrowser.open(url, new=2, autoraise=True)
    return True
  except webbrowser.Error:
    sys.stderr.write("\t" + name_of_link + " failed to open.\n")
    return False
Open the given URL in the user's default webbrowser.
dataset/ETHPy150Open google/fplutil/setuputil/util.py/open_link