Instantly share code, notes, and snippets.

Embed
What would you like to do?
Open an URL in the default browser. Python snippet.
#!/usr/bin/python
import webbrowser
webpage = 'http://www.google.com'
webbrowser.open_new_tab(webpage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment