How to open a URL in python December 21, 2022 by Tarik with the webbrowser module import webbrowser webbrowser.open('http://example.com') # Go to example.com