method post

Juha Autero Juha.Autero at iki.fi
Tue Sep 9 14:46:55 EDT 2003


"franck" <opo at opo.com> writes:

> Hi,
>
> how to do a post with python?

import nntplib

server = NNTP(nntpserver)
server.post(newsarticle)
server.quit()

Note that newsarticle should be a file object. 

Sorry, couldn't resist. ;)


-- 
Juha Autero
http://www.iki.fi/jautero/
Eschew obscurity!






More information about the Python-list mailing list