Thread View: news.software.nntp
5 messages
5 total messages
Started by Michael A. Smith
Mon, 22 Mar 2004 16:14
Python nntplib and xml
Author: Michael A. Smith
Date: Mon, 22 Mar 2004 16:14
Date: Mon, 22 Mar 2004 16:14
15 lines
1592 bytes
1592 bytes
I'm looking for an nntp-to-xml parser/converter, preferably written *portably* in Python. If I don't recieve any (good) responses, I'll probably write it myself, but if you happen to have already written one, or even begun one, and you feel like being magnanimous, send me a note and I'll be happy to give you credit. I'm also interested if you've written just a DTD for nntp-xml, or anything else you think might apply. PS - There's no money involved for either of us. This is for a low-budget research project. Thanks, Mike
Re: Python nntplib and xml
Author: Russ Allbery
Date: Mon, 22 Mar 2004 21:49
Date: Mon, 22 Mar 2004 21:49
24 lines
2047 bytes
2047 bytes
Michael A Smith <ntesla5@hotmail.com> writes:
> I'm looking for an nntp-to-xml parser/converter, preferably written
> *portably* in Python. If I don't recieve any (good) responses, I'll
> probably write it myself, but if you happen to have already written one,
> or even begun one, and you feel like being magnanimous, send me a note
> and I'll be happy to give you credit.
> I'm also interested if you've written just a DTD for nntp-xml, or
> anything else you think might apply.
I'm not sure what you mean by converting NNTP to XML. NNTP is a
command-response article retrieval and transmission protocol; the only
XML-based protocol that I can think of being even vaguely similar would be
something like SOAP or XML-RPC.
Are you sure that you don't mean converting news *articles* to XML?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Python nntplib and xml
Author: Michael A. Smith
Date: Mon, 22 Mar 2004 23:03
Date: Mon, 22 Mar 2004 23:03
23 lines
2354 bytes
2354 bytes
Russ Allbery wrote: > Michael A Smith <ntesla5@hotmail.com> writes: > >>I'm looking for an nntp-to-xml parser/converter, preferably written >>*portably* in Python. If I don't recieve any (good) responses, I'll >>probably write it myself, but if you happen to have already written one, >>or even begun one, and you feel like being magnanimous, send me a note >>and I'll be happy to give you credit. > >>I'm also interested if you've written just a DTD for nntp-xml, or >>anything else you think might apply. > > I'm not sure what you mean by converting NNTP to XML. NNTP is a > command-response article retrieval and transmission protocol; the only > XML-based protocol that I can think of being even vaguely similar would be > something like SOAP or XML-RPC. > > Are you sure that you don't mean converting news *articles* to XML? Quite right; I'm mixing terms. Sorry about the confusion. I'd be looking for a way to convert *articles*, head, body, everything to XML. NNTP to SOAP or XML-RPC might do as well.
Re: Python nntplib and xml
Author: Russ Allbery
Date: Mon, 22 Mar 2004 23:21
Date: Mon, 22 Mar 2004 23:21
20 lines
1854 bytes
1854 bytes
Michael A Smith <ntesla5@hotmail.com> writes:
> Quite right; I'm mixing terms. Sorry about the confusion. I'd be looking
> for a way to convert *articles*, head, body, everything to XML. NNTP to
> SOAP or XML-RPC might do as well.
Bearing in mind that the news message format is very close to the e-mail
message format with some additional fields, you may find:
<http://www.imc.org/ietf-message-xml/index.html>
interesting. Google also turns up a few XML-RPC and SOAP implementations
of SMTP, but I don't see anything off-hand for NNTP.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Python nntplib and xml
Author: iMeowbot
Date: Tue, 23 Mar 2004 06:00
Date: Tue, 23 Mar 2004 06:00
24 lines
2166 bytes
2166 bytes
In article <c3n3dn$65i$1@usenet01.srv.cis.pitt.edu>, "Michael A. Smith" <ntesla5@hotmail.com> wrote: > I'm looking for an nntp-to-xml parser/converter, preferably written > *portably* in Python. If I don't recieve any (good) responses, I'll > probably write it myself, but if you happen to have already written one, > or even begun one, and you feel like being magnanimous, send me a note > and I'll be happy to give you credit. > > I'm also interested if you've written just a DTD for nntp-xml, or > anything else you think might apply. > > PS - There's no money involved for either of us. This is for a > low-budget research project. You might want to start with this article. http://www.informit.com/articles/article.asp?p=32074&seqNum=1 The stuff about reading a mailbox won't apply, but getting an rfc822 object from nntplib is just a matter of stuffing the lines returned by article() into a cStringIO object, and using that to create an rfc822.Message instance. The ProcessMessage() function in the sample should work as-is though.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads