nntplib.NNTP

class nntplib.NNTP(host, port=119, user=None, password=None, readermode=None, usenetrc=True)[source]

Methods

__init__(host[, port, user, password, ...]) Initialize an instance.
artcmd(line[, file]) Internal: process a HEAD, BODY or ARTICLE command.
article(id) Process an ARTICLE command.
body(id[, file]) Process a BODY command.
date() Process the DATE command.
debug(level) Set the debugging level.
description(group) Get a description for a single group.
descriptions(group_pattern) Get descriptions for a range of groups.
getline() Internal: return one line from the server, stripping CRLF.
getlongresp([file]) Internal: get a response plus following text from the server.
getresp() Internal: get a response from the server.
getwelcome() Get the welcome message from the server (this is read and squirreled away by __init__()).
group(name) Process a GROUP command.
head(id) Process a HEAD command.
help([file]) Process a HELP command.
ihave(id, f) Process an IHAVE command.
last() Process a LAST command.
list([file]) Process a LIST command.
longcmd(line[, file]) Internal: send a command and get the response plus following text.
newgroups(date, time[, file]) Process a NEWGROUPS command.
newnews(group, date, time[, file]) Process a NEWNEWS command.
next() Process a NEXT command.
post(f) Process a POST command.
putcmd(line) Internal: send one command to the server (through putline()).
putline(line) Internal: send one line to the server, appending CRLF.
quit() Process a QUIT command and close the socket.
set_debuglevel(level) Set the debugging level.
shortcmd(line) Internal: send a command and get the response.
slave() Process a SLAVE command.
stat(id) Process a STAT command.
statcmd(line) Internal: process a STAT, NEXT or LAST command.
statparse(resp) Internal: parse the response of a STAT, NEXT or LAST command.
xgtitle(group[, file]) Process an XGTITLE command (optional server extension) Arguments: - group: group name wildcard (i.e.
xhdr(hdr, str[, file]) Process an XHDR command (optional server extension).
xover(start, end[, file]) Process an XOVER command (optional server extension) Arguments:
xpath(id) Process an XPATH command (optional server extension) Arguments: