SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    get any blogs rssurl from their urls

    Hello
    I have the blog urls for a few blogs of my liking. Using get_meta_data function I am able to pull the title, description and keywords for these blogs. I also want the corresponding rssurls for these blogs. Is there a method to get their rssurls when you only know their blog urls??

  2. #2
    @php.net Salathe's Avatar
    Join Date
    Dec 2004
    Location
    Edinburgh
    Posts
    1,397
    Mentioned
    63 Post(s)
    Tagged
    0 Thread(s)
    You could parse the link elements in the page's header. For example, this page has two feeds like:
    HTML Code:
    <link rel="alternate" type="application/rss+xml" title="SitePoint Forums RSS Feed" href="external.php?type=RSS2" />
    <link rel="alternate" type="application/rss+xml" title="SitePoint Forums - PHP - RSS Feed" href="external.php?type=RSS2&amp;forumids=34" />
    Salathe
    Software Developer and PHP Manual Author.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •