New Post has a little deeper content.
Operating environment:
Insanely simple.
sample1.py
import webbrowser
url = "amazon.co.jp"
webbrowser.open(url)
However, this will open the website in IE. If you want to open your website in your favorite browser, for example chrome
sample2.py
import webbrowser
url = "amazon.co.jp"
browser = webbrowser.get('"(chrome.Absolute path to exe)" %s')
browser.open(url)
Let.
Recommended Posts