Skip to content

Instantly share code, notes, and snippets.

@sctech-tr
Created June 10, 2024 16:09
Show Gist options
  • Save sctech-tr/ce7319ccadc6d79a8876fa290cae0ecf to your computer and use it in GitHub Desktop.
Save sctech-tr/ce7319ccadc6d79a8876fa290cae0ecf to your computer and use it in GitHub Desktop.
python script to search with the flag &udm=14
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