Hi, I'm using yql to fetch web content from an external website. But, despite of using proper xpath value and foramt as json too, I'm always getting result as null. Can anyone help me out to sort this? I'm trying to get content for this below website. If yql has any prob, can anyone suggest me some alternative to yql? I have tried this so far. Please have a look at it.
var site = "http://www.amazon.in/Seiko-Premier-Analog-Blue-Watch/dp/B012T413GO?_encoding=UTF8&ref_=cm_sw_r_wa_apa_i_5c5uzbQG5A293";
site = site.replace('m.', '')
var yql = "SELECT * FROM html WHERE url='" + site + "' AND xpath='//title|//head/meta'";
var resturl = "http://query.yahooapis.com/v1/public/yql?q=" + encodeURIComponent(yql) + "&format=json";
$.getJSON(resturl,function(data){
console.log(data);
})