Ask coding questions

← Back to all posts
Open google homepage with python
[deleted]

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: https://pythonprogramming.altervista.org/how-to-open-a-web-page-in-the-browser-using-chrome-with-python-and-webbrowser/?doing_wp_cron=1591463598.7557270526885986328125

Answered by SystematicError [earned 5 cycles]
View Answer
Comments
hotnewtop
SystematicError

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!

[deleted]

@SystematicError It worked!

SystematicError

@CarlosRosiles, Glad I could help!
Btw, I tried to look up webbrowser on PyPI.org 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 https://docs.python.org/3/library/webbrowser.html