Jump to content

Python not opening brave and going to an address

Enderg312

I am trying to make python open the web browser brave and go to the gateway to the router but it isn't working, I even tried putting in a web address and it didn't work.

import webbrowser
path = "C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
webbrowser.register('brave', None, webbrowser.BackgroundBrowser(path))
p = webbrowser.get('brave')
p.open_new_tab('192.168.1.1')

 

Link to comment
Share on other sites

Link to post
Share on other sites

in what way does it "not work"? Does the browser not open up at all? does the website fail to load? does it output any error at all?

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Try changing the first line to this 

from webbrowser import *

If my answer is correct or is helpful please mark it as the solution. Quote me in your post to summon me. Beware that after summoning me ill never leave. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×