getting real link from rss feed link

Posted by pfunc on Stack Overflow See other posts from Stack Overflow or by pfunc
Published on 2010-05-08T16:04:42Z Indexed on 2010/05/08 16:08 UTC
Read the original article Hit count: 222

Filed under:
|
|

I am experimenting with scraping certain pages from an RSS feed using curl and php. The page scraping was working fine when I was just using actual links, not links from the rss feeds. However, I realize now that links in rss feeds are usually just redirects to the actual page (at least this is what it seems like). Because now when I scrape a page with the rss link, it doesn't actually get the information I am looking for.

Has anyone encountered this and know of a workaround. Is there anyway to see where the rss link is redirecting to and capturing that value?

© Stack Overflow or respective owner

Related posts about php

Related posts about rss