Skip to content

Instantly share code, notes, and snippets.

@pirafrank
Created August 20, 2015 21:02
Show Gist options
  • Save pirafrank/cd62f7def8f56ff986af to your computer and use it in GitHub Desktop.
Save pirafrank/cd62f7def8f56ff986af to your computer and use it in GitHub Desktop.
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