# Loop and parse each rss feed url

**URL:** <https://www.ruby-forum.com/t/loop-and-parse-each-rss-feed-url/164557>\
**Category:** Rails\
**Created:** [April 2, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/loop-and-parse-each-rss-feed-url/164557 "2009-04-02T16:06:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7ea924/32.png) [@nickh](https://www.ruby-forum.com/u/nickh)\
**Post date:** [April 2, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/loop-and-parse-each-rss-feed-url/164557/1 "2009-04-02T16:06:50Z")

</div>

I am attempting to parse mutiple rss feed url’s which are pulled from a  
database, to parse the feeds im using simple rss.

so eg an active record query such as rssfeed = Rssfeed.find(:all)

This probalay needs to be more refined such as just grabbing the  
feed\_url rather than all the attributes but anyway this grabs on the rss  
feed urls.

for each of the urls i have stored in rssfeed variable i want them to  
loop through each one parsing it and storing it so i can display them in  
a view.

this is the process for parsing the feed

SimpleRSS.parse open(rssfeed.feed\_url)

Now ive attemtped placing it inside for loops and for each do etc had no  
luck.

Has anyone got any suggestions on how this can be looped through and  
stored?

Regards

Nick
