Build an OMPL file from RSS feeds

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • the_ainbinders@nospam.yahoo.com

    Build an OMPL file from RSS feeds

    Anything like this around anywhere? Need to be able to input RSS
    information for several feeds and have it create an OMPL file.

    TIA,

    Rob

  • Mike Willbanks

    #2
    Re: Build an OMPL file from RSS feeds

    Rob,
    [color=blue]
    > Anything like this around anywhere? Need to be able to input RSS
    > information for several feeds and have it create an OMPL file.[/color]

    I am unsure if there is any applications that already current do this.
    But this should be pretty easy. If you take a peak at this guys OPML
    feed you can see what elements are needed and the attributes used:


    You can also find the OPML specification document at:


    For me I built an xml parser and writer to handle it all from an array
    to build the documents for me. As you might be able to find several of
    those around now days...

    Also if you wanted to do a quick and easy implementation you could do
    something of this sort:

    //define feeds
    $feed = array();
    $feed['My Rss Feed'] = 'http://www.someurl.com/rss.rss';
    $feed['Some Other RSS Feed'] = 'http://www.someotherur l.com/rss.rss';

    //create the starting markup
    echo('<?xml version="1.0" encoding="UTF-8"?>');
    echo("\r\n".'<o pml version="1.0">' );
    echo("\r\n\t".' <head>'."\r\n\t ".'</head>');
    echo("\r\n\t".' <body>');

    foreach($feed as $k => $v) {
    echo("\r\n\t\t" .'<outline text="'.$k.'" xmlUrl="'.$v.'" type="rss"
    version="RSS"></outline>');
    }
    echo("\r\n\t".' </body>');
    echo("\r\n".'</opml>');

    That might or might not help you but is always a good starting point
    from creating something from scratch. This was a really quick and dirty
    mockup of what you could do to make it using the array keys as the Text
    and the url as the value.

    Mike

    Comment

    • Mike Willbanks

      #3
      Re: Build an OMPL file from RSS feeds

      Rob,

      Also here is some other good resources:




      Mike

      Comment

      Working...