I'm trying to use the 'webbrowser' module to access a website on my Firefox. After going through some of the posts on this site, I found that this piece of code works for most of them:
raise Error("could not locate runnable browser")
Error: could not locate runnable browser
this shows you valid browsers you can pass get function. Firefox is in this list for me as linux user.
If firefox is not that list, try register it manually:
import webbrowser webbrowser.register('firefox', None, webbrowser.GenericBrowser('firefox'), 1) webbrowser.get('firefox').open('https://www.google.com')
Of course I can not guaranteed that this solution work, because I could not try it on windows.