473,513 Members | 2,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there any Generic RSS/ATOM generator in Python?

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
7 4563
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
4333
by: Raymond Hettinger | last post by:
Peter Norvig's creative thinking triggered renewed interest in PEP 289. That led to a number of contributors helping to re-work the pep details into a form that has been well received on the...
9
2669
by: Francis Avila | last post by:
A little annoyed one day that I couldn't use the statefulness of generators as "resumable functions", I came across Hettinger's PEP 288 (http://www.python.org/peps/pep-0288.html, still listed as...
45
2979
by: Joh | last post by:
hello, i'm trying to understand how i could build following consecutive sets from a root one using generator : l = would like to produce : , , , ,
2
2239
by: Anonieko Ramos | last post by:
Blogger has posted this code: =============================== using System; using System.Net; using System.Security.Cryptography; using System.Text; using System.Web.Services.Protocols;...
0
1165
by: fj | last post by:
I am new in Python programming. I try to connect to Python various libraries written either in C of in Fortran. The job is not really hard but I meet a trouble when trying to build up a generic...
0
1356
by: banjolibrarian | last post by:
I have been setting up RSS and Atom feeds for our library's podcasts. The RSS feed works fine, but when I subscribe to the Atom feed (via Bloglines), the link to the file itself defaults to...
15
2303
by: Brady Love | last post by:
I am currently working an an app that will post and edit blogs on blogger. Right now I have it so I can recive a list of the blogs and the content of those blogs using Atomizer. This is my first...
5
3357
by: Steve R. Hastings | last post by:
Hello. I have written a module called PyAtom. It is designed to make it really easy to create an Atom syndication feed. Atom is a format similar to RSS, but with some additional features. ...
14
1203
by: castironpi | last post by:
I'm actually curious if there's a way to write a generator function (not a generator expression) in C, or what the simplest way to do it is... besides link the Python run-time.
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.