Opening and Closing a webpage in browser from Python

html, python

Solution

Yes, use python's builtin webbrowser module for this.

>>> import webbrowser
>>> url = 'http://www.python.org/'
>>> webbrowser.open_new(url)

Problem

Is there any way to open a browser window with a specified URL, then close the browser at a later point?

Original source

Related problems