Re: How to parse usenet urls?
- From: "snewman18@xxxxxxxxx" <snewman18@xxxxxxxxx>
- Date: 30 May 2007 20:26:32 -0700
Are you aware of nntplib?
http://docs.python.org/lib/module-nntplib.html
I am, but I once I got into the article itself, I couldn't figure out
how to "call" a link inside the resulting message text:
import nntplib
username = my username
password = my password
nntp_server = 'newsclip.ap.org'
n = nntplib.NNTP(nntp_server, 119, username, password)
n.group('ap.spanish.online.headlines')
m_id = n.next()[1]
n.article(m_id)
I'll get output like this headline and full story message link:
(truncated for length)
... 'Castro: Bush desea mi muerte, pero las ideas no se matan', 'news://newsclip.ap.org/D8PE2G6O0@xxxxxxxxxxx', ...
How can I take the message link 'news://newsclip.ap.org/
D8PE2G6O0@xxxxxxxxxxx' and follow it?
.
- Follow-Ups:
- Re: How to parse usenet urls?
- From: Nikita the Spider
- Re: How to parse usenet urls?
- References:
- How to parse usenet urls?
- From: snewman18@xxxxxxxxx
- Re: How to parse usenet urls?
- From: Nikita the Spider
- How to parse usenet urls?
- Prev by Date: Re: paste text with newlines into raw_input?
- Next by Date: Re: Newbie question about string(passing by ref)
- Previous by thread: Re: How to parse usenet urls?
- Next by thread: Re: How to parse usenet urls?
- Index(es):