views:

64

answers:

1

I have built an Plagiarism Detection application, using Google API and JavaScript which is working fine, but It could not search when searching material exceeds more than 235 words. Please tell me how to do that.

A: 

You can try xgoogle Python lib.

from xgoogle.search import GoogleSearch, SearchError
try:
  gs = GoogleSearch("quick and dirty")
  gs.results_per_page = 50
  results = gs.get_results()
  for res in results:
    print res.title.encode('utf8')
    print res.desc.encode('utf8')
    print res.url.encode('utf8')
    print
except SearchError, e:
  print "Search failed: %s" % e
Juanjo Conti
Can you show me an example i don't know how to use xgoogle Python lib?
Sheery
Added. If you can search that long in your browser, you can search it with this lib.
Juanjo Conti