Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Search DuckDuckGo in Google Chrome for iOS
import webbrowser
import urllib
ddg_url = "googlechromes://"
query_url = "q="
# input
prompt = "> "
query = raw_input("Query: \n" + prompt)
# url encode
query = urllib.quote(query)
# open in chrome + query_url + query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment