Ask coding questions

← Back to all posts
Open google homepage with python

How do you open the google homepage with python 3? I keep trying, but nothing ever happens. (Probably because I use chrome) How do I open it? Is it even possible? Here is a repl with a code I got from here:

Answered by SystematicError [earned 5 cycles]
View Answer

Hey @CarlosRosiles,
Try to use the webbot library like this:

Please upvote if this helped and/or mark this as the answer if it worked for you @CarlosRosiles!


@SystematicError It worked!


@CarlosRosiles, Glad I could help!
Btw, I tried to look up webbrowser on and its not available, I think is an in-built Python package so if you want to use your webbrowser package you can go to