2010-02-15 4 views

답변

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

추가됨. 브라우저에서 오래 검색 할 수 있다면이 lib로 검색 할 수 있습니다. –

관련 문제