nntplib tutorial

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hg

    #1

    nntplib tutorial

    Hi,

    Is there such a thing ?

    Trying to understand the various strings I get hereunder

    Thanks,

    hg



    from nntplib import *


    s = NNTP('news.cent ral.cox.net')
    resp, count, first, last, name = s.group('comp.l ang.python')
    print 'Group', name, 'has', count, 'articles, range', first, 'to', last
    resp, subs = s.xhdr('subject ', first + '-' + last)
    for id, sub in subs[-10:]:
    print id
    for article in s.article(id):
    print dir(article)
  • Gabriel Genellina

    #2
    Re: nntplib tutorial

    At Wednesday 11/10/2006 14:46, hg wrote:
    >Is there such a thing ?
    >
    >Trying to understand the various strings I get hereunder
    A basic understanding of the protocol would help a lot. The RFC 977
    itself is not so hard to read, but you could find some tutorials using google.


    --
    Gabriel Genellina
    Softlab SRL





    _______________ _______________ _______________ _____
    Preguntá. Respondé. Descubrí.
    Todo lo que querías saber, y lo que ni imaginabas,
    está en Yahoo! Respuestas (Beta).
    ¡Probalo ya!


    Comment

    • hg

      #3
      Re: nntplib tutorial

      Gabriel Genellina wrote:
      At Wednesday 11/10/2006 14:46, hg wrote:
      >
      >Is there such a thing ?
      >>
      >Trying to understand the various strings I get hereunder
      >
      A basic understanding of the protocol would help a lot. The RFC 977
      itself is not so hard to read, but you could find some tutorials using
      google.
      >
      >
      will give it a shot, thanks

      Comment

      Working...