Is there any Generic RSS/ATOM generator in Python?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • js

    Is there any Generic RSS/ATOM generator in Python?

    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.
  • Stefan Behnel

    #2
    Re: Is there any Generic RSS/ATOM generator in Python?

    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:



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




    Stefan

    Comment

    • Terran Melconian

      #3
      Re: Is there any Generic RSS/ATOM generator in Python?

      On 2008-02-11, js <ebgssth@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.

      Comment

      • Torsten Bronger

        #4
        Re: Is there any Generic RSS/ATOM generator in Python?

        Hallöchen!

        Terran Melconian writes:
        On 2008-02-11, js <ebgssth@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: bronger@jabber. org
        (See http://ime.webhop.org for further contact info.)

        Comment

        • Stefan Behnel

          #5
          Re: Is there any Generic RSS/ATOM generator in Python?

          Torsten Bronger wrote:
          Terran Melconian writes:
          >
          >On 2008-02-11, js <ebgssth@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

          Comment

          • Torsten Bronger

            #6
            Re: Is there any Generic RSS/ATOM generator in Python?

            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: bronger@jabber. org
            (See http://ime.webhop.org for further contact info.)

            Comment

            • js

              #7
              Re: Is there any Generic RSS/ATOM generator in Python?

              Trivial?
              More than XML::Atom::Feed ?


              On 2/14/08, Torsten Bronger <bronger@physik .rwth-aachen.dewrote:
              Hallöchen!
              >
              >
              Terran Melconian writes:
              >
              On 2008-02-11, js <ebgssth@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: bronger@jabber. org
              (See http://ime.webhop.org for further contact info.)
              >
              --

              >

              Comment

              • Christopher Arndt

                #8
                Re: Is there any Generic RSS/ATOM generator in Python?

                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:



                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:



                Chris

                Comment

                Working...