Yahoo Pipes: Possible to retrieve get real url fro

2019-03-31 23:10发布

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.

标签: yahoo-pipes
1条回答
老娘就宠你
2楼-- · 2019-03-31 23:38

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

查看更多
登录 后发表回答