A fork of https://github.com/Synerty/SOAPpy-py3 This is a working tree till fixes get imported upstream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
402 B

  1. from SOAPpy import WSDL
  2. server = WSDL.Proxy('/home/warneg/src/google/googleapi/GoogleSearch.wsdl')
  3. key = "6k0oDPZQFHL0zpjy6ZO6ufUVFKBgvqTo"
  4. results = server.doGoogleSearch(key, 'warnes', 0, 10, False, "",
  5. False, "", "utf-8", "utf-8")
  6. for i in range(len(results.resultElements)):
  7. res = results.resultElements[i]
  8. print '%d: %s --> %s' % ( i, res.title, res.URL )