Search Anything From Any Website In PythonCode CrazeFeb 5, 20231 min readUpdated: Feb 8, 2023import webbrowser as wbtxt = input('Enter Word To Search : ')print('1. GOOGLE 2. YOUTUBE 3. WIKIPEDIA 4. BLOGGER 5. WIX')website = input('Enter Website Name : ')website.lower()if(website=='google'): wb.open('https://www.google.com/search?q='+txt)if(website=='youtube'): wb.open('https://www.youtube.com/results?search_query='+txt)if(website=='wikipedia'): wb.open('https://en.wikipedia.org/wiki/'+txt)if(website=='blogger'): wb.open('https://codecraze1998.blogspot.com/search?q='+txt)if(website=='wix'): wb.open('https://codecraze1998.wixsite.com/code-craze/search?q='+txt) #We can add more features in this code by our comfortless. I use these five webpages for running the code.
import webbrowser as wbtxt = input('Enter Word To Search : ')print('1. GOOGLE 2. YOUTUBE 3. WIKIPEDIA 4. BLOGGER 5. WIX')website = input('Enter Website Name : ')website.lower()if(website=='google'): wb.open('https://www.google.com/search?q='+txt)if(website=='youtube'): wb.open('https://www.youtube.com/results?search_query='+txt)if(website=='wikipedia'): wb.open('https://en.wikipedia.org/wiki/'+txt)if(website=='blogger'): wb.open('https://codecraze1998.blogspot.com/search?q='+txt)if(website=='wix'): wb.open('https://codecraze1998.wixsite.com/code-craze/search?q='+txt) #We can add more features in this code by our comfortless. I use these five webpages for running the code.
Commentaires