johnmahugu

python - ubuntu google search

Jun 25th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #!/usr/bin/python
  2. import os
  3. import urllib
  4. google = os.popen('zenity --entry --text="Enter what you want to google: " --title="google.py"').read()
  5. google = urllib.quote(google)
  6. os.system('firefox http://www.google.com/search?q=%s' % (google))
Add Comment
Please, Sign In to add comment