webbrowser

Table of Contents

Overview

# Open an url in a new tab(-t)
$ python -m webbrowser -t "http://www.python.org"
# With python code:
import webbrowser
webbrowser.open_new_tab('http://yeonghoey.com')