Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 25th, 2012  |  syntax: Python  |  size: 0.27 KB  |  hits: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import os
  2. import duckduckgo
  3.  
  4. #Download location
  5. rootdir = "/home/ian/Downloads"
  6.  
  7. print "Type the name of the movie you want to download."
  8.  
  9. #search the web for a link to download
  10.  
  11. query = raw_input()
  12. print query
  13. r = duckduckgo.query(query)
  14. print r.results[0].text