开发者

How to retrieve the head of a html document using YQL?

开发者 https://www.devze.com 2022-12-21 03:23 出处:网络
I\'m curious if this is possible at all since a \"se开发者_运维知识库lect * from html\" query only returns the body of the document.Finally found the answer. (EDIT : thanks to Salathe on the YQL forum

I'm curious if this is possible at all since a "se开发者_运维知识库lect * 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'
0

精彩评论

暂无评论...
验证码 换一张
取 消