What could be the YQL Query to extract movie data from IMDB website. I need to fetch cast information from the title page of IMDB which i have as input URL.
Ex:
My input URL : http://www.imdb.com/title/tt1243957/
不是javascript,但这是curl
命令,它发送YQL查询以获取演员表信息:
$ curl -G --data-urlencode 'q=SELECT * FROM html WHERE url = "www.imdb.com/title/tt1243957/" AND xpath="//div[contains(@id,'\''titleCast'\'')]"' http://query.yahooapis.com/v1/public/yql?format=xml
A simple get request is an answer to this.
$.get("http://www.imdb.com/title/tt1243957/",
function(data){
console.log(data);
}//end function(data)
);//end getJSON
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.