Article View: news.software.readers
Article #239718Re: nsr User Agent stats
From: Steve Ackman
Date: Sat, 06 Feb 2010 19:37
Date: Sat, 06 Feb 2010 19:37
47 lines
3465 bytes
3465 bytes
In <Xns9D17E12553FE4emteedee@194.177.98.144>, on 6 Feb 2010 12:09:15 +0100, Mike Dee, mikedee@emteedee.invalid wrote: > Much appreciated and I look forward to further 'Stats' posts if > possible. Short version: You're welcome, and it's not only possible, but quite probable. ;-) Long version: I've recently decided to learn python to the extent I can use it to retrieve and break down usenet posts to populate an SQL database. I used to do that with a sed/awk script on a leafnode filesystem, but that was kind of like using an axe to try to whittle fine art. Once article bits are in a database, you can pull out all sorts of correlations, and select/count/sort stuff trivially. Anyway, on the path to using Python the way I ultimately want, that was exercise #1 for text/string manipulation (though I have to admit to a little bit of a "cheat" in that the real workhorse still ended up being an os system call to a grep statement.) :-/ End game - Python is cross platform and MySQL is cross platform. Retrieving posts using NNTP means you don't have the leafnode requirement (as Garry Knight's perl script does). MySQL is also network friendly, so you could conceivably have the news server on one machine, the Python script on another, and the database on yet another, none caring what os the other(s) is/are running. GK's script also has no provision for choosing begin and end dates. It's designed to do "today minus x days," and that's it. A database allows you to choose exact begin/end datetimes, so you could do the month of January even though it's already the 6th of Feb for instance, something not possible with GK's script (well not hackable by anyone of my meager perl familiarity anyway). -- ☯☯
Technical Details
Message-ID:
<slrnhmrh98.1fh.steve@sorceror.wizard.dyndns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe21.iad.POSTED!ad1616f1!not-for-mailReferences:
<slrnhjstua.2b5n.steve@wizard.dyndns.org> <emteedee-BF7096.21242112012010@mail.eternal-september.org> <slrnhmphd1.1fh.steve@sorceror.wizard.dyndns.org> <Xns9D17E12553FE4emteedee@194.177.98.144>Show Full Headers
Complete Article Headers
Message-ID: <slrnhmrh98.1fh.steve@sorceror.wizard.dyndns.org>
Subject: Re: nsr User Agent stats
Date: Sat, 6 Feb 2010 12:37:06 -0700
From: Steve Ackman <steve@SNIP-THIS.twoloonscoffee.com>
References: <slrnhjstua.2b5n.steve@wizard.dyndns.org> <emteedee-BF7096.21242112012010@mail.eternal-september.org> <slrnhmphd1.1fh.steve@sorceror.wizard.dyndns.org> <Xns9D17E12553FE4emteedee@194.177.98.144>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe21.iad.POSTED!ad1616f1!not-for-mail
Newsgroups: news.software.readers
Reply-To: usenet2002@SNIP-THIS.twoloonscoffee.com
X-No-Archive: yes
X-Face: Zrm9At!%e{M_#Po+[-\; RFQih#L0/\!^6f8JS_1Nz,8`(@bR%|T,c)3:o6my`.sy$Rt)'
^)ec9cWp!MmeH^Gp|Afl)BkcH1GENCBqb&wZ$cdqN27uYfD=jU@1:vWXf|)LmuVKo?1wuS68KeDX&
3,#wZP2$N1Ao!_'mZOws67
User-Agent: slrn/pre1.0.0-16 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Cancel-Lock: sha1:kilU79GSFn/E+N/FjVzyy0KgpNA=
Lines: 47
X-Complaints-To: abuse@teranews.com
NNTP-Posting-Date: Sat, 06 Feb 2010 19:37:55 UTC
Organization: TeraNews.com