www.webdeveloper.com
Results 1 to 2 of 2

Thread: Grab specific data from RSS feeds?

  1. #1
    Join Date
    Aug 2008
    Posts
    9

    Grab specific data from RSS feeds?

    Hey, I was wondering if it was possible to grab specific data from RSS feeds.

    An example of what I would like to create is if a user of my site types in a keyword like "Apples" in a text box of some sort and submits it. The user will then receive all stories or news containing the word "Apples" in it for whatever RSS feeds they are subscribed to on the site.

    Thanks for the help.

  2. #2
    Join Date
    Jul 2008
    Posts
    13
    Hi

    perhaps it work

    function grabRSS($html)
    {
    if (preg_match('!<link[^>]+type=["\']application/rss\\+xml["\'][^>]+href=["\']([^"\'>]+)["\'][^>]*>!i', $html, $out))
    {
    return $out[1];
    }

    return false;
    }

    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles