Python Tutorial

Wednesday, June 4, 2014

Python webbrowser


Python webrowser provides high-level interface to displaying Web-based documents.
import webbrowser

url ='https://docs.python.org'
webbrowser.open(url, new=0, autoraise=True)


Output:

This code will open url to existing web browser and raised the window.

0 comments:

Post a Comment