nntplib tutorial

hg hg at nospam.com
Wed Oct 11 13:46:49 EDT 2006


Hi,

Is there such a thing ?

Trying to understand the various strings I get hereunder

Thanks,

hg



from nntplib import *


s = NNTP('news.central.cox.net')
resp, count, first, last, name = s.group('comp.lang.python')
print 'Group', name, 'has', count, 'articles, range', first, 'to', last
resp, subs = s.xhdr('subject', first + '-' + last)
for id, sub in subs[-10:]:
    print id
    for article in  s.article(id):
        print dir(article)



More information about the Python-list mailing list