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 ...

Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.