Yahoo Pipes: Possible to retrieve get real url from feedproxy.google.com url?

不羁岁月 提交于 2019-12-05 02:11:42

问题


Using Yahoo Pipes, is it possible to poll this url
http://feedproxy.google.com/~r/Techcrunch/~3/P-_qWQXyAPU/
and get the real url
http://www.techcrunch.com/2009/12/08/build-it-with-me
returned to the pipe?

Ideally the solution would be generic enough to poll any url and get it's "real" url. I'm thinking it might be possible with YQL but am not sure.


回答1:


Just for completeness, I thought I would link the answer you got on YDN:

http://developer.yahoo.net/forum/index.php?showtopic=3993&st=0&p=10927&#entry10927

If you use y.rest() to make the call you can use followRedirects(false) like this:

use 'http://javarants.com/yql/javascript.xml'as j; select * from j where code='response.object =
y.rest("http://feedproxy.google.com/~r/Techcrunch/~3/P-%5FqWQXyAPU/").followRedirects(false).get().headers.location;'

Sam



来源:https://stackoverflow.com/questions/1970606/yahoo-pipes-possible-to-retrieve-get-real-url-from-feedproxy-google-com-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!