Topics

Using Google AJAX API to copy google results in array

This is some way you can results as a JavaScript that you can on any , you first need to get your Google API Key then try this

	//generate new web  object
	 searcher = new GwebSearch();
	//disable html
	searcher.setNoHtmlGeneration();
	//expand results to max - about 10
	searcher.setResultSetSize(GSearch.LARGE_RESULTSET);
	//excute the  by adding  then collect the results in element with id='mydiv'
	searcher.setSearchCompleteCallback( searcher.execute( 'my ' ), 
										function()
										{ 
										var results = searcher.results;
										for(i in results)
											for(a in results[i])
												document.getElementById("mydiv").innerHTML += results[i][a]+' | '} ); 

More on how to collect information from this array could be found here