0

twitter rss feed links comes short (like http://t.co/rwkYrSPD)

I want to get the direct link with using yahoo pipes

How to do it?

3 Answers 3

1

Well, obviously you can simply go to the page. for example, http://t.co/rwkYrSPD becomes http://trailers.apple.com/trailers/focus_features/paranorman/

0

Does Yahoo Pipes have the ability to execute a HEAD request against a URL? If you run a HEAD against that url (curl -I 'http://t.co/rwkYrSPD') you'll get back an HTTP/1.1 301 Moved Permanently response with the actual URL as the Location header.

2
  • looks like t.co urls direct to tinyurl, so you'd have to run down the redirect chain until you get a status code % 200 < 100 Jun 29, 2012 at 21:48
  • @ColinDunklau: This particular t.co URL is redirecting to tinyurl. Others aren't going to do that. But yes, if you want the "true" URL you need to keep running HEAD until you stop getting 301 redirects. Jun 29, 2012 at 21:49
0

I realise it's quite a bit later, now, but check out the source of this Pipe, which uses the LongURL API (e.g., http://api.longurl.org/v2/expand?url=http://t.co/rwkYrSPD) together with YQL.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.