Created
June 10, 2024 16:09
-
-
Save sctech-tr/ce7319ccadc6d79a8876fa290cae0ecf to your computer and use it in GitHub Desktop.
python script to search with the flag &udm=14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webbrowser | |
input_str = input("please enter a search query: ") | |
if input_str is None: | |
print("please enter a valid search query.") | |
else: | |
print(f"searching for {input_str}...") | |
final_query = input_str.replace(" ", "+") | |
url = f"https://www.google.com/search?q={final_query}&udm=14" | |
webbrowser.open(url) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment