Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
python open link in browser 1

python open link in browser

June 13, 2022 by Anurag batra
import webbrowser

webbrowser.open_new('http://www.facebook.com')

Here is what the above code is Doing:
1. It’s importing the webbrowser module.
2. It’s opening a new tab in your default browser and loading the Facebook home page.

Categories Python Examples
Post navigation
yesterday in python
how to load images from folder in python
© MyEduKit - 2022 . All Rights Reserved.