mmcdole / gofeed

Parse RSS, Atom and JSON feeds in Go
MIT License
2.55k stars 208 forks source link

Feed creator (XML writer) #33

Open jpillora opened 8 years ago

jpillora commented 8 years ago

Since all the structs are here, are there any plans to use them to create feeds?

mmcdole commented 8 years ago

@jpillora I hadn't really considered it before, but it shouldn't be that hard.

Let me think on the interface some.

xfort commented 7 years ago

How to create feeds(xml)

mmcdole commented 7 years ago

@xfort as it stands, this library is strictly for parsing / reading feeds, not creating them.

I'm open to the possibility of creating them, but I would want to do it in a way that made sense with the current API.

cristoper commented 5 years ago

In the mean time I'm using this package to serialize feeds after parsing with gofeed (it supports RSS, Atom, and JSON Feed):

https://github.com/gorilla/feeds

It would be convenient to not have to translate between gofeed structs and gorilla/feed structs, but it is not much trouble and seems to work well.

afk-mario commented 5 years ago

Is there a way to access the original XML from a parsed feed ? I'm trying to parse the feed so I can validate it, if it's valid return the feed.

treeder commented 1 year ago

Any news on this?

nk-fouque commented 2 months ago

@cristoper

In the mean time I'm using this package to serialize feeds after parsing with gofeed (it supports RSS, Atom, and JSON Feed):

https://github.com/gorilla/feeds

Could you share the code to translate between one and the other ? This would probably help many people and maybe make it simpler for a contributor (not me) to do it