Skip to content

Instantly share code, notes, and snippets.

@atelic
Created May 15, 2015 05:05
Show Gist options
  • Save atelic/d27e6c87e320c6a93f61 to your computer and use it in GitHub Desktop.
Save atelic/d27e6c87e320c6a93f61 to your computer and use it in GitHub Desktop.
Python 2 script that googles your argument with a small GUI
#!/usr/bin/python2
import os, urllib
google = os.popen('zenity --entry --text="Enter your search: " --title="goog.py"').read()
google = urllib.quote(google)
os.system('google-chrome-stable http://google.com/search?q=%s' % (google) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment