2010-09-14 4 views

Répondre

0

Vous pouvez regarder l'option de filtrage utilisé à:

Il utilise deux types de filtres:

  • en double Snippet Filtre
  • en double Filtre de répertoire

Ainsi lors de l'appel, marque Filtre = True

results = server.doGoogleSearch(key, 'mark', 0, 10, False, "", ...) 

L'API fournit l'argument suivant:

key - Your Google API key 
q - The search word 
start - The index of the result to start on 
maxResults - The number of results to return. 
filter - If True, Google will filter out duplicate pages 
restrict - Set this to country plus a country code to get results only from a particular country 
safeSearch - If True, Google will filter out porn sites 
lr (“language restrict”) - Set this to a language code 
ie and oe must be "utf-8" 
+0

Êtes-vous sûr que ceux qui travaillent sur le google public? –

+0

API Google accepte Filter = True/False option et je suppose que le filtre en double est également activé pour google publique. – pyfunc

+0

@Byron Whitlock: La documentation de l'API de recherche Ajax, google Appliance API fournit à la fois le filtre comme options pour l'API de recherche – pyfunc

Questions connexes