trying to automate a task

I'd like to automate a task that requires access to my models.
Specifically, I'd like to fetch some rss feeds and then create model
objects from them. I initially thought that I could do this with rake,
but then I realized that rake doesn't have access to any of the rails
environments. Can someone tell me the right approach do doing this?

oh nevermind. I just found an article that describes how to do this:
http://www.railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial#rails_models