Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Return URL list for a Google Search

Was wondering what the easiest way to return a list/array of URLs from a google search result. I would be using JS and the Google API

What i want to do it this

Google a term like "dogs"

Have a array/list of URLs that are relevant to that search: domainurl1 domainurl2

etc..

like image 647
DirectXgameR Avatar asked Apr 28 '16 07:04

DirectXgameR


1 Answers

options[google.search.Search.RESTRICT_EXTENDED_ARGS] = {
  'cr': 'countryIT',
  'sort': 'date'
};
var customSearchControl = new google.search.CustomSearchControl(id, options);

Here is the syntax to get Return url list

google.search.CustomSearchControl.CustomSearch
      Control(cseId, opt_options);

You will get proper details in this link : Return URL list

like image 116
Tousif Ahmad Avatar answered Nov 12 '22 03:11

Tousif Ahmad