English 中文(简体)
How to retrieve the head of a html document using YQL?
原标题:

I m curious if this is possible at all since a "select * from html" query only returns the body of the document.

最佳回答

Finally found the answer. (EDIT : thanks to Salathe on the YQL forums!)

select * from html where url="http://stackoverflow.com" and xpath= /html/head/title 
问题回答

暂无回答




相关问题
Cross domain AJAX requests using JQuery and YQL

I need to use YQL (Yahoo Query Language) to perform a cross domain ajax request then bind the XML response into a JSON object and retrieve a value from the XML. The link shows how this is done ...

Javascript convert data from utf-8 to iso-8859-1

I work on a website which is all done in iso-8859-1 encoding using old ASP 3.0. I use Yahoo YQL to request data (XML) from external websites but which I request to be returned as JSON-P (JSON with a ...

Wait for getJSON response

i m trying to make a script using Yahoo s YQL in a web applicaion. The script looks over a text paragraph and then it finds some references and appends on the text as a popup. It all goes fine until I ...

YQL Geo Distance between 2 WOEID s

I store the YQL WOEID (Where on earth id) for all the users of my application locations. I now need a way to search for all users within x miles of a given WOEID, is this possible using YQL? ...

YQL scrape entire website/domain

I m trying to scape back a set of links and content from a domain. The Query in google would be "site:www.newswebsite.com search_term" I ve seen some close stuff to getting this working, but I can ...

热门标签