Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python open new chrome tab

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-chrome %s'

webbrowser.get(chrome_path).open(url)
Comment

PREVIOUS NEXT
Code Example
Python :: python check if port in use 
Python :: install aws sdk ubuntu 20.04 command line 
Python :: python read url 
Python :: plot model 
Python :: label encoding in pandas 
Python :: python check my gpu 
Python :: python radians to degrees 
Python :: tkinter max size 
Python :: python import from other folder outside folder 
Python :: openpyxl read excel 
Python :: django template capitalize equivalent 
Python :: tkinter boilerplate 
Python :: ckeditor django 
Python :: print pandas version 
Python :: python get copied text 
Python :: tkinter navigate pages 
Python :: pandas to list 
Python :: get list input from user in python 
Python :: divide two columns pandas 
Python :: python get current time without milliseconds 
Python :: pytesseract pdf to text 
Python :: how to split an input in python by comma 
Python :: python range for float 
Python :: get current week python 
Python :: select python version ubuntu 
Python :: python hour from date 
Python :: django proper capitalization case jinja 
Python :: django migrate using db 
Python :: virtualenv in mac 
Python :: python os output to variable 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =