473,473 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

newsgroup lib

Is there a python module for accessing newsgroup articles?

Something similar to urllib for downloading web pages...

Cheers
Jesper
Jul 18 '05 #1
3 1249
Jesper Olsen wrote:
Is there a python module for accessing newsgroup articles?

Something similar to urllib for downloading web pages...

nttplib?
see: <http://www.python.org/doc/current/lib/module-nntplib.html>

--
email: goldicus1970 AT yahoo.it
blog: http://www.deelan.com/


Jul 18 '05 #2
Jesper Olsen wrote:
Is there a python module for accessing newsgroup articles?


You're looking for nntplib

http://www.python.org/dev/doc/devel/...e-nntplib.html

For example,
s = NNTP('news.cwi.nl')
resp, count, first, last, name = s.group('comp.lang.python')
print 'Group', name, 'has', count, 'articles, range', first, 'to',
last Group comp.lang.python has 59 articles, range 3742 to 3803 resp, subs = s.xhdr('subject', first + '-' + last)
for id, sub in subs[-10:]: print id, sub ....
3792 Re: Removing elements from a list while iterating...
3793 Re: Who likes Info files?
3794 Emacs and doc strings
3795 a few questions about the Mac implementation
3796 Re: executable python scripts
3797 Re: executable python scripts
3798 Re: a few questions about the Mac implementation
3799 Re: PROPOSAL: A Generic Python Object Interface for Python C
Modules
3802 Re: executable python scripts
3803 Re: \POSIX{} wait and SIGCHLD s.quit()

'205 news.cwi.nl closing connection. Goodbye.'

Gerrit.

--
5. If a judge try a case, reach a decision, and present his judgment in
writing; if later error shall appear in his decision, and it be through
his own fault, then he shall pay twelve times the fine set by him in the
case, and he shall be publicly removed from the judge's bench, and never
again shall he sit there to render judgement.
-- 1780 BC, Hammurabi, Code of Law
--
PrePEP: Builtin path type
http://people.nl.linux.org/~gerrit/c.../pep-xxxx.html
Asperger's Syndrome - a personal approach:
http://people.nl.linux.org/~gerrit/english/

Jul 18 '05 #3
Gerrit Holl <ge****@nl.linux.org> wrote in message news:<ma**************************************@pyt hon.org>...
Jesper Olsen wrote:
Is there a python module for accessing newsgroup articles?


You're looking for nntplib

http://www.python.org/dev/doc/devel/...e-nntplib.html


Indeed so.
Thanks Gerrit & deelan

Jesper
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
0
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
0
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
11
by: Mark A | last post by:
Here is Mark Townsend's (Oracle Product Manager) explanation and justification for posting in the DB2 newsgroup, as posted on the Oracle newsgroup, and my response: "Mark Townsend"...
7
by: Eric Gunnerson | last post by:
If you would like to see this group created, please reply to this post, making sure you leave news.groups on the newsgroups line. "Nigel Perry" <nigel@cosc.canterbury.ac.nz> wrote in message...
72
by: Sam Halliday | last post by:
hi there, over the last few days i have posted a few questions about some non-standard C headers/functions. from being on the list in the last few days i have noticed that this was not the...
35
by: Cor | last post by:
This are the people who are awarded for ther work in the newsgroup 2003-2004 http://mvp.support.microsoft.com/default.aspx?scid=fh;en-us;mvpaward&style=toc Except Herfried you see nobody on...
0
by: =?iso-8859-1?b?VG9t4XMg0yBoyWlsaWRoZQ==?= | last post by:
A week or so I go, I proposed the founding of a new newsgroup called comp.lang.c++.portable.highlevel, but I've since decided that comp.lang.c+ +.cross-platform would be a better name. I've...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.