How do I create an RSS feed of content from an external website

How can I turn the content of a website into an RSS feed?

I would also like the feed to be updated every 3 to 6 hours? Perhaps with a cron job.

Read More

This is for an external website, not my own.

Related posts

Leave a Reply

2 comments

  1. Have you looked at YQL?

    Yahoo YQL

    YQL

    It is a service offered by Yahoo that could be configure to get the content from a remote site for you.

    You would then need to run the script on a cron if you wanted to grab the data regularly.

    Example from YQL

    This query grabs content from CNN based on xpath (Firebug can help you find out the correct xpath query).

    Then returns it as XML, meaning it is easy to read into a script.

  2. Place this where you want to show the rss content in your theme:

    <?php include_once(ABSPATH.WPINC.'/rss.php');
    wp_rss('http://feeds.feedburner.com/wprecipes', 3); ?>
    

    Replace “http://feeds.feedburner.com/wprecipes” with your feeed and “3” with the number of articles to display.