-
Notifications
You must be signed in to change notification settings - Fork 0
/
rechercher.py
27 lines (24 loc) · 917 Bytes
/
rechercher.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import webbrowser
choice = input ("Entrez la recherche que vous souhaitez faire: ")
new = 2 # NE PAS TOUCHER.
open = webbrowser.open
if choice == "python":
open("https://www.python.org", new=new)
elif choice == "python doc":
open("https://docs.python.org/3/", new=new)
elif choice == "youtube":
open("https://www.youtube.com", new=new)
elif choice == "twitch":
open("https://www.twitch.tv", new=new)
elif choice == "github":
open("https://github.com", new=new)
elif choice == "discord":
open("https://discord.com", new=new)
elif choice == "spotify":
open("https://www.spotify.com/fr/home/", new=new)
elif choice == "visual studio":
open("https://code.visualstudio.com", new=new)
else:
open("https://google.com", new=new)
# Libre a vous de vous faire votre propre navigateur privé en Python d'ajouter une interface etc...
# C'est uniquement la base !