The webbrowser module provides a very high-level interface to allow displaying Web-based documents to users. The controller objects are easy to use and are platform independent.
Under Unix, graphical browsers are preferred under X11, but text-mode browsers will be used if graphical browsers are not available or an X11 display isn't available. If text-mode browsers are used, the calling process will block until the user exits the browser.
For non-Unix platforms, or when X11 browsers are available on Unix, the controlling process will not wait for the user to finish with the browser, but allow the browser to maintain its own window on the display.
The following exception is defined:
The following functions are defined:
None, constructor will be called without parameters to create an instance when needed. If instance is provided, constructor will never be called, and may be
Several browser types are defined. This table gives the type names that may be passed to the get() function and the names of the implementation classes, all defined in this module.
|Type Name||Class Name||Notes|