Skip to content
Advertisement

I have a program that opens websites, and I set my default browser to google chrome, but it still uses Internet Explorer

This is what I have so far. Do I need to change anything to make webbrowser package use Google Chrome?

import webbrowser
web = input('What website would you like to open? i.e. pbskids.org')
webbrowser.open(web)

Advertisement

Answer

Usually, this is just an issue with your default browser. If you navigate to your Windows settings page, you can change the default browser to another installed web browser, in your case, Google Chrome.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement