Chris,

Thanks, the django community aggregator is built on top of the
Universal Feed Parser. I figured out the zip codes function of my app.

What I can't figure out is why when I add a m2m model to my
update_feeds.py does not work. As far as I can tell in the
update_feeds doesn't access the Feed model and save it anywhere.

On Jun 7, 10:34 am, Chris Lawlor <[email protected]> wrote:
> I've not used the django community aggregator, so I'm making some
> assumptions about it's functionality. If that app were to emit a
> signal for each feed entry that it processed, it would be fairly
> simple to write a signal handler that would create the associations
> that you want. With this approach, you wouldn't need another cron job,
> your processing would be done at the same time as django community
> aggregator's.
>
> If you do need to do some manual feed parsing, you might try using the
> Universal Feed Parser python module:http://feedparser.org/. It's
> specifically designed for parsing RSS / Atom feeds, and so may be
> somewhat more useful than BeautifulSoup.
>
> On Jun 6, 10:59 pm, Chris McComas <[email protected]> wrote:
>
>
>
>
>
>
>
> > Also, using the update_feeds that's part of the Django Community
> > Aggregator worked initially, but I started over adding a m2m field on
> > the Feed model for Sites. I'll have several "sites" as part of the
> > Django app, like team1.mysite.com, team2.mysite.com, etc.
>
> > When I added that field to the models and tried to run the
> > update_feeds script it did nothing. It didn't import the feeds, didn't
> > throw an error, etc.
>
> > update_feeds:https://github.com/django/djangoproject.com/blob/master/django_websit...
> > my models:http://dpaste.com/551322/
>
> > Thanks,
>
> > On Jun 6, 4:55 pm, Chris McComas <[email protected]> wrote:
>
> > > This could be the wrong place to ask (maybe a BeautifulSoup)
> > > question...
>
> > > I have a Django app that is based around the Django Community
> > > Aggregator, it gets feeds from various sites and displays them on my
> > > site. What I am wanting to do, if possible, is when it gets a feed if
> > > a certain zip code is the feed Title or Summary then I want to create
> > > a entry for that zipcode with that feed?
>
> > > I have a model for the zip codes, so the list to compare should be
> > > pulled from that. There'd be a cron that'd run to do this, so for
> > > example if one of the zip codes is 12345 and one of the feeds it gets
> > > on the hourly cron has 12345 in the summary, then it'd go to the model
> > > linking the two and create/save an entry.
>
> > > Here are the pertinent models:http://dpaste.com/551223/
>
> > > Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to