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.
This is for an external website, not my own.
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.
This is for an external website, not my own.
You must be logged in to post a comment.
Have you looked at YQL?
Yahoo 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.
Place this where you want to show the rss content in your theme:
Replace “http://feeds.feedburner.com/wprecipes” with your feeed and “3” with the number of articles to display.