You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
502 B
16 lines
502 B
import webbrowser
|
|
|
|
url1 = 'https://www.marcombo.com/'
|
|
url2 = 'https://www.amazon.es/'
|
|
url3 = 'https://www.google.com/'
|
|
|
|
# Abrir la URL en una nueva pestaña si ya existe una ventana del navegador abierta
|
|
webbrowser.open_new_tab(url1)
|
|
|
|
# Abrir la URL en una nueva ventana, si es posible
|
|
webbrowser.open_new(url2)
|
|
|
|
edge_path = "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
|
|
webbrowser.register('edge', None, webbrowser.BackgroundBrowser(edge_path))
|
|
webbrowser.get('edge').open_new(url3)
|