Created
May 15, 2015 05:05
-
-
Save atelic/d27e6c87e320c6a93f61 to your computer and use it in GitHub Desktop.
Python 2 script that googles your argument with a small GUI
This file contains hidden or 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
#!/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