Re: Rss lib in python?

2005-05-31 Thread lihui
PyRSS2Gen

http://www.dalkescientific.com/Python/PyRSS2Gen.html

example:
mport datetime
import PyRSS2Gen

rss = PyRSS2Gen.RSS2(
title = "Andrew's PyRSS2Gen feed",
link = "http://www.dalkescientific.com/Python/PyRSS2Gen.html";,
description = "The latest news about PyRSS2Gen, a "
  "Python library for generating RSS2 feeds",

lastBuildDate = datetime.datetime.now(),

items = [
   PyRSS2Gen.RSSItem(
 title = "PyRSS2Gen-0.0 released",
 link = "http://www.dalkescientific.com/news/030906-PyRSS2Gen.html";,
 description = "Dalke Scientific today announced PyRSS2Gen-0.0, "
   "a library for generating RSS feeds for Python.  ",
 guid = PyRSS2Gen.Guid("http://www.dalkescientific.com/news/";
  "030906-PyRSS2Gen.html"),
 pubDate = datetime.datetime(2003, 9, 6, 21, 31)),
   PyRSS2Gen.RSSItem(
 title = "Thoughts on RSS feeds for bioinformatics",
 link = "http://www.dalkescientific.com/writings/diary/";
"archive/2003/09/06/RSS.html",
 description = "One of the reasons I wrote PyRSS2Gen was to "
   "experiment with RSS for data collection in "
   "bioinformatics.  Last year I came across...",
 guid = PyRSS2Gen.Guid("http://www.dalkescientific.com/writings/";
   "diary/archive/2003/09/06/RSS.html"),
 pubDate = datetime.datetime(2003, 9, 6, 21, 49)),
])

rss.write_xml(open("pyrss2gen.xml", "w"))




31 May 2005 20:10:20 -0700, nephish <[EMAIL PROTECTED]>:
> Hey man, i would like to know this too.
> hope someone knows...
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 


-- 
my gmail:lihuimail(at)gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Rss lib in python?

2005-05-31 Thread lihui
Please use feedparser:

 http://feedparser.org/

2005/6/1, Grant Edwards <[EMAIL PROTECTED]>:
> On 2005-06-01, Owen <[EMAIL PROTECTED]> wrote:
> 
> > i want to know some rss library in python.For example, some
> > for rss readers, and some for generator.
> 
> http://www.learnwebskills.com/search/main.html
> http://www.learnwebskills.com/search/google.html
> 
> Googling for "python rss library" generate a whole page
> full of useful looking stuff:
> 
>   http://www.google.com/search?q=python+rss+library
> 
> Here's an RSS aggregator written in Python:
> 
>   http://offog.org/code/rawdog.html
> 
> --
> Grant Edwards   grante Yow!  HOW could a GLASS
>   at   be YELLING??
>visi.com
> --
> http://mail.python.org/mailman/listinfo/python-list
> 


-- 
my gmail:lihuimail(at)gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list