O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

nntplib

The nntplib module provides a low-level interface to the client side of NNTP (Network News Transfer Protocol). NNTP is described in RFC 977, which may be useful in understanding the fine detail. The module defines the following class:

						NNTP(host
						[,
						port
						[,
						user
						[,
						password
						[,
						readermode
						[,
						usenetrc]]]]])

Establishes an NNTP connection with the NNTP server at host. port specifies the NNTP port and defaults to 119. user and password provide user-authentication information if required. readermode is a Boolean flag. If True, the special command “mode reader” is sent to the server before authentication. By default, readermode is False. usenetrc is a Boolean flag that reads authentication information from an .netrcfile, if present. The default ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required