By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,086 Members | 1,460 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,086 IT Pros & Developers. It's quick & easy.

Is there any Generic RSS/ATOM generator in Python?

P: n/a
js
Hi,

I'm looking for RSS/ATOM generator I can use in Python.
I searched on pypi and the other places but I couldn't find any
options on this. (I found many parsers, though)
Is there any de-fact standard RSS/ATOM generator? (especially, I'd
like to create Atom's)
Do I have to do it myself from scratch?

Thanks in advance.
Feb 11 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
js wrote:
I'm looking for RSS/ATOM generator I can use in Python.
I searched on pypi and the other places but I couldn't find any
options on this. (I found many parsers, though)
Is there any de-fact standard RSS/ATOM generator? (especially, I'd
like to create Atom's)
Do I have to do it myself from scratch?
Try googling for "python atom", gives me this as first hit:

http://www.imc.org/atom-syntax/mail-.../msg18662.html

But since it's not that hard to generate XML in general, maybe these are also
worth another look:

http://blog.ianbicking.org/2007/08/02/atom-models/
http://codespeak.net/lxml/objectify....-the-e-factory

Stefan
Feb 11 '08 #2

P: n/a
On 2008-02-11, js <eb*****@gmail.comwrote:
Is there any de-fact standard RSS/ATOM generator? (especially, I'd
like to create Atom's)
Do I have to do it myself from scratch?
I looked into similar issues about six months ago. My conclusion was
that generally XML generation libraries (unlike parsers) don't get
written, because there's little enough to them that it isn't seen as
worth doing, and that accepted practice is to just do it yourself.
Feb 14 '08 #3

P: n/a
Hallöchen!

Terran Melconian writes:
On 2008-02-11, js <eb*****@gmail.comwrote:
>Is there any de-fact standard RSS/ATOM generator? (especially,
I'd like to create Atom's) Do I have to do it myself from
scratch?

I looked into similar issues about six months ago. My conclusion
was that generally XML generation libraries (unlike parsers) don't
get written, because there's little enough to them that it isn't
seen as worth doing, and that accepted practice is to just do it
yourself.
Maybe I understand you wrongly but there *is* a general XML
generator with ElementTree. I wouldn't generate XML directly but
using ElementTree to generate Atom. I did it myself three months
ago and it was really trivial.

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: br*****@jabber.org
(See http://ime.webhop.org for further contact info.)
Feb 14 '08 #4

P: n/a
Torsten Bronger wrote:
Terran Melconian writes:
>On 2008-02-11, js <eb*****@gmail.comwrote:
>>Is there any de-fact standard RSS/ATOM generator? (especially,
I'd like to create Atom's) Do I have to do it myself from
scratch?
I looked into similar issues about six months ago. My conclusion
was that generally XML generation libraries (unlike parsers) don't
get written, because there's little enough to them that it isn't
seen as worth doing, and that accepted practice is to just do it
yourself.

Maybe I understand you wrongly but there *is* a general XML
generator with ElementTree. I wouldn't generate XML directly but
using ElementTree to generate Atom. I did it myself three months
ago and it was really trivial.
Actually, there's tons of XML generator packages (most of them single Python
modules), ElementTree itself and the "E factory" being only two of them.

Stefan
Feb 14 '08 #5

P: n/a
Hallöchen!

Stefan Behnel writes:
Torsten Bronger wrote:
>Terran Melconian writes:

[...]

Maybe I understand you wrongly but there *is* a general XML
generator with ElementTree. I wouldn't generate XML directly but
using ElementTree to generate Atom. I did it myself three months
ago and it was really trivial.

Actually, there's tons of XML generator packages (most of them
single Python modules), ElementTree itself and the "E factory"
being only two of them.
I mentioned ElementTree because in my opinion, it is the only sane
XML generator in the standard lib.

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: br*****@jabber.org
(See http://ime.webhop.org for further contact info.)
Feb 14 '08 #6

P: n/a
js
Trivial?
More than XML::Atom::Feed?
http://search.cpan.org/~miyagawa/XML...L/Atom/Feed.pm

On 2/14/08, Torsten Bronger <br*****@physik.rwth-aachen.dewrote:
Hallöchen!
Terran Melconian writes:
On 2008-02-11, js <eb*****@gmail.comwrote:
>
>Is there any de-fact standard RSS/ATOM generator? (especially,
>I'd like to create Atom's) Do I have to do it myself from
>scratch?
>
I looked into similar issues about six months ago. My conclusion
was that generally XML generation libraries (unlike parsers) don't
get written, because there's little enough to them that it isn't
seen as worth doing, and that accepted practice is to just do it
yourself.


Maybe I understand you wrongly but there *is* a general XML
generator with ElementTree. I wouldn't generate XML directly but
using ElementTree to generate Atom. I did it myself three months
ago and it was really trivial.

Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: br*****@jabber.org
(See http://ime.webhop.org for further contact info.)

--
http://mail.python.org/mailman/listinfo/python-list
Feb 14 '08 #7

P: n/a
On 11 Feb., 15:47, js <ebgs...@gmail.comwrote:
I'm looking for RSS/ATOM generator I can use in Python.
I searched on pypi and the other places but I couldn't find any
options on this. (I found many parsers, though)
Is there any de-fact standard RSS/ATOM generator? (especially, I'd
like to create Atom's)
Do I have to do it myself from scratch?
You didn't specify your use case very much. If you just want to add
support for generating Atom/RSS feeds to your app and the format (i.e.
which elements and attributes are used) isn't too dynamic, you could
just an XML-templating language like Kid or Genshi.

The feed generator included in TurboGears uses this approach. I
recently packaged this as a separate module:

http://chrisarndt.de/projects/turbofeeds/

The module still only makes sense in a TurboGears context but you may
want to look at the Kid templates used, they could be used by any app
that wants to generate Atom/RSS:

http://trac.turbogears.org/browser/p...eeds/templates

Chris
Feb 18 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.