top of page

Search Anything From Any Website In Python

Writer's picture: Code CrazeCode Craze

Updated: Feb 8, 2023



import webbrowser as wb

txt = 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'):


#We can add more features in this code by our comfortless. I use these five webpages for running the code.


5 views0 comments

Recent Posts

See All

Commentaires


bottom of page