google.load("elements", "1", {packages : ["newsshow"]});
function onLoad() {
var a=new Array();
a[0]="india";
a[1]="us";
a[2]="brazil";
flag=1;
s=" sports";
p=" politics";
e=" entertainment";
t=" science and technology";
w=" ";
var options = new Array();
for(i=0;i<a.length;i++){
options[i]={
"queryList" : [
{
"q" : a[i] + t
},
]
}
}
var content = document.getElementById('content');
for(i=0;i<a.length;i++){
var newsShow = new google.elements.NewsShow(content, options[i]);
}
}
google.setOnLoadCallback(onLoad);
I am using this code saved in html format to get news acordding to specific queries. This shows me the results on browser page, but I want to extract url, images and title from those news updates. PLs help me with this soon
Thanks in advance for any Help