2010-02-15 64 views
1

我已经建立了一个剽窃检测应用程序,使用Google API和JavaScript工作正常,但它不能搜索时,搜索材料超过235字以上。请告诉我该怎么做。如何增加谷歌搜索限制?

回答

0

您可以试试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 
+0

你能告诉我一个例子,我不知道如何使用xgoogle Python lib吗? – Sheery

+0

已添加。如果你可以在浏览器中搜索那么久,你可以用这个库搜索它。 –