but it' not at all complete more or less comprehensive list of python' internet-related modules appears at the start of the previous among other thingspython also includes client-side support libraries for internet newstelnethttpxml-rpcand other standard protocols most of these are analogous to modules we've already met--they provide an object-based interface that automates the underlying sockets and message structures for instancepython' nntplib module supports the client-side interface to nntp-the network news transfer protocol--which is used for reading and posting articles to usenet newsgroups on the internet like other protocolsnntp runs on top of sockets and merely defines standard message protocollike other modulesnntplib hides most of the protocol details and presents an object-based interface to python scripts we won' get into full protocol details herebut in briefnntp servers store range of articles on the server machineusually in flat-file database if you have the domain or ip name of server machine that runs an nntp server program listening on the nntp portyou can write scripts that fetch or post articles from any machine that has python and an internet connection for instancethe script in example - by default fetches and displays the last articles from python' internet newsgroupcomp lang pythonfrom the news rmi net nntp server at one of my isps example - pp \internet\other\readnews py ""fetch and print usenet newsgroup posting from comp lang python via the nntplib modulewhich really runs on top of socketsnntplib also supports posting new messagesetc noteposts not deleted after they are read""listonly false showhdrs ['from''subject''date''newsgroups''lines'tryimport sys servernamegroupnameshowcount sys argv[ :showcount int(showcountexceptservername nntpconfig servername assign this to your server groupname 'comp lang pythoncmd line args or defaults showcount show last showcount posts connect to nntp server print('connecting to'servername'for'groupnamefrom nntplib import nntp connection nntp(servername(replycountfirstlastnameconnection group(groupnameprint('% has % articles% -% (namecountfirstlast)get request headers only fetchfrom str(int(last(showcount- ) client-side scripting