webbrowser — Convenient web-browser controller

PHOTO EMBED

Fri Oct 08 2021 00:22:13 GMT+0000 (UTC)

Saved by @trivent

url = 'https://docs.python.org/'

# Open URL in a new tab, if a browser window is already open.
webbrowser.open_new_tab(url)

# Open URL in new window, raising the window if possible.
webbrowser.open_new(url)
content_copyCOPY

https://docs.python.org/3/library/webbrowser.html