When I look at the RSS feed for the blog, there's a description node
that has exactly the text I want.
I see two ways to do this, but I hope somebody else has a better idea.
1. Hit the MySQL database from TG and extract the stuff I want in my
controller. I don't really like this approach because it requires
going to another database.
2. Somehow grab the RSS feed off localhost, do some XML parsing to grab
the description section, and display that.
Like I said, I hope somebody has a better solution.
TIA
MAtt
Doing it this way should be easy using feedparser http://feedparser.org/
d = feedparser.parse("http://...")
for item in d.feed:
print item.description
or something like that.
>
> Like I said, I hope somebody has a better solution.
>
> TIA
>
> MAtt
>
>
> >
>
--
cheers
elvelind grandin