From Newsgroup: comp.misc
Lane W <
cactus_DAC@yahoo.com> wrote:
Scott Dorsey wrote:
In article <117hlek$1ni59$1@dont-email.me>,
Lane W <cactus_DAC@yahoo.com> wrote:
Say I want to find the newsgroup with bionet in its title and the
maximal number of posts. What is a way to do this in C#, Python or
Visual Basic? Is there an API for Usenet?
Do you want to query the nntp server or just grep your own .newsrc?
I would rather query the nntp server because there are approximately 60 >newsgroups that contain bionet. Perhaps in this case subscription could
be the faster way, but I'd also like to know in general, such as in the
case this could be far more than 60 newsgroups.
Then do this:
nntplist -x \*bionet\* | awk -F\ '{print $1 " " $2-$3}'
When I run this on Panix, I see the vast majority of these groups contain
558 messages, which makes me think they hit a maximum at some point somewhere. (Of those 558 messages, not all of them may be left on the server either,
but the message numbers indicate they were there at some point.)
awk is our friend.
--scott
--
"C'est un Nagra. C'est suisse, et tres, tres precis."
--- Synchronet 3.22a-Linux NewsLink 1.2