Chrome instead of IE - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Chrome instead of IE (/thread-24329.html) |
Chrome instead of IE - Friend - Feb-09-2020 Hi all, i just read a little bit about the webbrowser and tried open google for example. so i did: import webbrowser webbrowser.open('https://www.google.com')it works, but it opens Internet explorer. How do i make it open my default browser "Chrome", do i need to change some settings? thanks in advance RE: Chrome instead of IE - Larz60+ - Feb-09-2020 use the register method to change browser see: https://docs.python.org/3/library/webbrowser.html?highlight=webbrowser#webbrowser.register |