What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-14 15:50:08
how to open youtube from google chrome browser instead of internet explorerwhen coding in python
>>> import webbrowser as wb >>> wb.register('chrome', None) >>> wb.open('https://www.youtube.com') True >>> wb.open('https://www.google.com') True >>> wb.open('https://stackoverflow.com') True Add solution -
Python 2022-01-31 23:55:06
open chrome with python stack overflow
import webbrowser url = 'http://docs.python.org/' # MacOS chrome_path = 'open -a /Applications/Google\ Chrome.app %s' # Windows # chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s' # Linux # chrome_path = '/usr/bin/google-c... Add solution -
Python 2022-01-31 21:31:19
webbrowser python could not locate runnable browser
import webbrowser urL='https://www.google.com' chrome_path="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" webbrowser.register('chrome', None,webbrowser.BackgroundBrowser(chrome_path)) webbrowser.get('chrome').open_new_tab... Add solution -
Python 2022-01-22 12:27:12
how to code J.A.R.V.I.S
import pyttsx3 #pip install pyttsx3 import speech_recognition as sr #pip install speechRecognition import datetime import wikipedia #pip install wikipedia import webbrowser import os import smtplib engine = pyttsx3.init('sapi5') voices = engine.getProper... Add solution