Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will be imprisoned for contributing your time and skill to a bank robbery.


comp / comp.os.linux.advocacy / Re: newnewstally.pl

SubjectAuthor
* newnewstally.plvallor
`* Re: newnewstally.plDFS
 +* Re: newnewstally.plvallor
 |`- Re: newnewstally.plDFS
 `* Re: newnewstally.plLawrence D'Oliveiro
  `- Re: newnewstally.plDFS

1
Subject: newnewstally.pl
From: vallor
Newsgroups: comp.os.linux.advocacy
Date: Tue, 27 Aug 2024 12:45 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: newnewstally.pl
Date: 27 Aug 2024 12:45:30 GMT
Lines: 105
Message-ID: <lj603aFet64U2@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net fZlstKMjAznGKSrz9SUOMgDOg4NjaVjBxPdFAwUaYivy+F7fhE
Cancel-Lock: sha1:CU1EhKrNIKwdpGlPUumBBLkRYqo= sha256:seyUMw2t0kvw4NbTt59ZEXjityWLFAFGNXchssHs+2E=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.160 (Toresk; 7830f38; Linux-6.11.0-rc5)
View all headers

So...I hauled-off and wrote the thing. Work in progress.

$ cat newnewstally.pl
#!/usr/bin/perl

use Net::NNTP;

sub Usage
{ select(STDERR);
print "Usage: $0 group \"dd mmm yyyy\"\n";
exit 1;
}

$group = shift || Usage();
$date = shift || Usage();

$fn_pw = `echo ~/bin/tallypw`;
open($fn_pw,$fn_pw) || die;
$username=<$fn_pw>;
$password=<$fn_pw>;
close($fn_pw);

chomp($username);
chomp($password);

$n = new Net::NNTP('localhost', Port=>120); # using stunnel

$n->authinfo($username,$password);

@status = $n->group($group);

#print "@status\n";
#6055866 2 6055867 alt.fan.rush-limbaugh

$rb = $status[2]+0;
$lb = $rb-10000;

#$fmt = $n->overview_fmt();
#print join(',',@{ $fmt });
#Subject:,From:,Date:,Message-ID:,References:,Bytes:,Lines:,Xref:full

@msg_spec = ($lb,$rb);

$xover = $n->xover(\@msg_spec);

# The return value will be a reference to a hash where
# the keys are the message numbers
# and each value contains
# a reference to an array
# which contains the overview fields for that message.

foreach $key (keys(%{$xover}))
{
# print join("\n",@{ $xover->{$key} });
# print "\n";
# exit 0;
next unless ($xover->{$key}->[2] =~ m#$date#o);
$from = $xover->{$key}->[1];
next if ($from =~ m#^=\?UTF-8#o);
$pcount{$from}++;
}

@sorted = sort
{ $pcount{$b} <=> $pcount{$a} }
(keys(%pcount));

foreach $key (@sorted)
{
printf("%4d %s\n",$pcount{$key},$key);
}

exit 0;
- - cut here %< - -

Sample output:
$ ./newnewstally.pl comp.os.linux.advocacy '26 Aug 2024' | head -20
76 Skeeter <skeeterweed@photonmail.com>
34 Governor Swill <governor.swill@gmail.com>
21 Snit <brock.mcnuggets@gmail.com>
17 pothead <pothead@snakebite.com>
16 Joel <joelcrump@gmail.com>
15 Mitchell Holman <noemail@aol.com>
13 Chris Ahlstrom <OFeem1987@teleworm.us>
11 Blue Lives Matter <Iron_White@Systemic_Patrriotism.KMA>
8 -hh <recscuba_google@huntzinger.com>
7 John Smyth <smythlejon2@outlook.com>
7 "max headroom" <maximusheadroom@gmx.com>
5 Baxter <bax02_spamblock@baxcode.com>
4 rbowman <bowman@montana.com>
3 chrisv <chrisv@nospam.invalid>
3 unknown <novalidemail@toss.net>
3 John Smyth <smythlejon2@hotmail.com>
3 candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
3 vallor <vallor@cultnix.org>
3 kami <f00@0f0.00f>
2 Farley Flud <ff@linux.rocks>

Comments welcome. :)

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.11.0-rc5 Release: Mint 21.3 Mem: 258G
"People own dogs. Cats own people."

Subject: Re: newnewstally.pl
From: DFS
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Tue, 27 Aug 2024 13:23 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: newnewstally.pl
Date: Tue, 27 Aug 2024 09:23:07 -0400
Organization: A noiseless patient Spider
Lines: 141
Message-ID: <vakjvo$309mh$1@dont-email.me>
References: <lj603aFet64U2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 27 Aug 2024 15:23:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6f5bf3e5204c215fefb9e051ee48b752";
logging-data="3155665"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bBnpclVOdlVHIryqkOJNR"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:r8bdWHQBo+iv+1aV5XSRTkmjUZs=
In-Reply-To: <lj603aFet64U2@mid.individual.net>
Content-Language: en-US
View all headers

On 8/27/2024 8:45 AM, vallor wrote:
> So...I hauled-off and wrote the thing. Work in progress.
>
> $ cat newnewstally.pl
> #!/usr/bin/perl
>
> use Net::NNTP;
>
> sub Usage
> {
> select(STDERR);
> print "Usage: $0 group \"dd mmm yyyy\"\n";
> exit 1;
> }
>
>
> $group = shift || Usage();
> $date = shift || Usage();
>
> $fn_pw = `echo ~/bin/tallypw`;
> open($fn_pw,$fn_pw) || die;
> $username=<$fn_pw>;
> $password=<$fn_pw>;
> close($fn_pw);
>
> chomp($username);
> chomp($password);
>
> $n = new Net::NNTP('localhost', Port=>120); # using stunnel
>
> $n->authinfo($username,$password);
>
> @status = $n->group($group);
>
> #print "@status\n";
> #6055866 2 6055867 alt.fan.rush-limbaugh
>
> $rb = $status[2]+0;
> $lb = $rb-10000;
>
> #$fmt = $n->overview_fmt();
> #print join(',',@{ $fmt });
> #Subject:,From:,Date:,Message-ID:,References:,Bytes:,Lines:,Xref:full
>
> @msg_spec = ($lb,$rb);
>
> $xover = $n->xover(\@msg_spec);
>
> # The return value will be a reference to a hash where
> # the keys are the message numbers
> # and each value contains
> # a reference to an array
> # which contains the overview fields for that message.
>
> foreach $key (keys(%{$xover}))
> {
> # print join("\n",@{ $xover->{$key} });
> # print "\n";
> # exit 0;
> next unless ($xover->{$key}->[2] =~ m#$date#o);
> $from = $xover->{$key}->[1];
> next if ($from =~ m#^=\?UTF-8#o);
> $pcount{$from}++;
> }
>
> @sorted = sort
> { $pcount{$b} <=> $pcount{$a} }
> (keys(%pcount));
>
> foreach $key (@sorted)
> {
> printf("%4d %s\n",$pcount{$key},$key);
> }
>
> exit 0;
> - - cut here %< - -
>
> Sample output:
> $ ./newnewstally.pl comp.os.linux.advocacy '26 Aug 2024' | head -20
> 76 Skeeter <skeeterweed@photonmail.com>
> 34 Governor Swill <governor.swill@gmail.com>
> 21 Snit <brock.mcnuggets@gmail.com>
> 17 pothead <pothead@snakebite.com>
> 16 Joel <joelcrump@gmail.com>
> 15 Mitchell Holman <noemail@aol.com>
> 13 Chris Ahlstrom <OFeem1987@teleworm.us>
> 11 Blue Lives Matter <Iron_White@Systemic_Patrriotism.KMA>
> 8 -hh <recscuba_google@huntzinger.com>
> 7 John Smyth <smythlejon2@outlook.com>
> 7 "max headroom" <maximusheadroom@gmx.com>
> 5 Baxter <bax02_spamblock@baxcode.com>
> 4 rbowman <bowman@montana.com>
> 3 chrisv <chrisv@nospam.invalid>
> 3 unknown <novalidemail@toss.net>
> 3 John Smyth <smythlejon2@hotmail.com>
> 3 candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
> 3 vallor <vallor@cultnix.org>
> 3 kami <f00@0f0.00f>
> 2 Farley Flud <ff@linux.rocks>
>
> Comments welcome. :)

Perl is a hideous, dying, write-once language.

This is semi-obfuscated Python
-------------------------------------------------------------------
import sys as y,nntplib as t
s='news.eternal-september.org'
g=y.argv[1]
n=t.NNTP(s,119,'<usr>','<pwd>')
r,a,b,e,gn=n.group(g)
def printStat(st,hd,rg):
r,d=n.xhdr(st,'%s-%s'%rg)
p=[]
for i in range(len(d)):
v=d[i][1]
if st=='Subject':v=v[4:] if v[:3]=='Re:' else v
p.append(v)
x=[(i,p.count(i)) for i in set(p)]
x.sort(key=lambda s:(-s[1],s[0].lower()))
print('Posts %s %s'%(len(set(p)),hd))
for v in x: print(' %s %s'%(v[1],v[0]))
print();print()
m=(int(e)-int(y.argv[2])+1,int(e))
printStat("From","Posters",m)
printStat("Subject","Subjects",m)
printStat("User-Agent","User-Agents",m)
n.quit()
-------------------------------------------------------------------

usage:
$ python stats.py groupname last_N_articles
$ python stats.py comp.os.linux.advocacy 100
$ python stats.py comp.lang.c 1000

Subject: Re: newnewstally.pl
From: vallor
Newsgroups: comp.os.linux.advocacy
Date: Tue, 27 Aug 2024 13:51 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: Re: newnewstally.pl
Date: 27 Aug 2024 13:51:03 GMT
Lines: 156
Message-ID: <lj63u7Fet64U5@mid.individual.net>
References: <lj603aFet64U2@mid.individual.net> <vakjvo$309mh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net S7r9T/lL8G3A79I1xBN+BQzZmlOHsrC1MmaR+Q6UK/pLpyhjm3
Cancel-Lock: sha1:5oYwP+4N21fCbNg09UwNWQxhtzo= sha256:VZ3ObfDZGKKitbHWd9GAP2v9jklXPDXL5kMO1fzBMiA=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.160 (Toresk; 7830f38; Linux-6.11.0-rc5)
View all headers

On Tue, 27 Aug 2024 09:23:07 -0400, DFS <nospam@dfs.com> wrote in
<vakjvo$309mh$1@dont-email.me>:

> On 8/27/2024 8:45 AM, vallor wrote:
>> So...I hauled-off and wrote the thing. Work in progress.
>>
>> $ cat newnewstally.pl
>> #!/usr/bin/perl
>>
>> use Net::NNTP;
>>
>> sub Usage
>> {
>> select(STDERR);
>> print "Usage: $0 group \"dd mmm yyyy\"\n";
>> exit 1;
>> }
>>
>>
>> $group = shift || Usage();
>> $date = shift || Usage();
>>
>> $fn_pw = `echo ~/bin/tallypw`;
>> open($fn_pw,$fn_pw) || die;
>> $username=<$fn_pw>;
>> $password=<$fn_pw>;
>> close($fn_pw);
>>
>> chomp($username);
>> chomp($password);
>>
>> $n = new Net::NNTP('localhost', Port=>120); # using stunnel
>>
>> $n->authinfo($username,$password);
>>
>> @status = $n->group($group);
>>
>> #print "@status\n";
>> #6055866 2 6055867 alt.fan.rush-limbaugh
>>
>> $rb = $status[2]+0;
>> $lb = $rb-10000;
>>
>> #$fmt = $n->overview_fmt();
>> #print join(',',@{ $fmt });
>> #Subject:,From:,Date:,Message-ID:,References:,Bytes:,Lines:,Xref:full
>>
>> @msg_spec = ($lb,$rb);
>>
>> $xover = $n->xover(\@msg_spec);
>>
>> # The return value will be a reference to a hash where
>> # the keys are the message numbers
>> # and each value contains
>> # a reference to an array
>> # which contains the overview fields for that message.
>>
>> foreach $key (keys(%{$xover}))
>> {
>> # print join("\n",@{ $xover->{$key} });
>> # print "\n";
>> # exit 0;
>> next unless ($xover->{$key}->[2] =~ m#$date#o);
>> $from = $xover->{$key}->[1];
>> next if ($from =~ m#^=\?UTF-8#o);
>> $pcount{$from}++;
>> }
>>
>> @sorted = sort
>> { $pcount{$b} <=> $pcount{$a} }
>> (keys(%pcount));
>>
>> foreach $key (@sorted)
>> {
>> printf("%4d %s\n",$pcount{$key},$key);
>> }
>>
>> exit 0;
>> - - cut here %< - -
>>
>> Sample output:
>> $ ./newnewstally.pl comp.os.linux.advocacy '26 Aug 2024' | head -20
>> 76 Skeeter <skeeterweed@photonmail.com>
>> 34 Governor Swill <governor.swill@gmail.com>
>> 21 Snit <brock.mcnuggets@gmail.com>
>> 17 pothead <pothead@snakebite.com>
>> 16 Joel <joelcrump@gmail.com>
>> 15 Mitchell Holman <noemail@aol.com>
>> 13 Chris Ahlstrom <OFeem1987@teleworm.us>
>> 11 Blue Lives Matter <Iron_White@Systemic_Patrriotism.KMA>
>> 8 -hh <recscuba_google@huntzinger.com>
>> 7 John Smyth <smythlejon2@outlook.com>
>> 7 "max headroom" <maximusheadroom@gmx.com>
>> 5 Baxter <bax02_spamblock@baxcode.com>
>> 4 rbowman <bowman@montana.com>
>> 3 chrisv <chrisv@nospam.invalid>
>> 3 unknown <novalidemail@toss.net>
>> 3 John Smyth <smythlejon2@hotmail.com>
>> 3 candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
>> 3 vallor <vallor@cultnix.org>
>> 3 kami <f00@0f0.00f>
>> 2 Farley Flud <ff@linux.rocks>
>>
>> Comments welcome. :)
>
>
> Perl is a hideous, dying, write-once language.

Your opinion.

>
>
> This is semi-obfuscated Python

Why obfuscate it?

Also, see below.

> -------------------------------------------------------------------
> import sys as y,nntplib as t
> s='news.eternal-september.org'
> g=y.argv[1]
> n=t.NNTP(s,119,'<usr>','<pwd>')
> r,a,b,e,gn=n.group(g)
> def printStat(st,hd,rg):
> r,d=n.xhdr(st,'%s-%s'%rg)
> p=[]
> for i in range(len(d)):
> v=d[i][1]
> if st=='Subject':v=v[4:] if v[:3]=='Re:' else v
> p.append(v)
> x=[(i,p.count(i)) for i in set(p)]
> x.sort(key=lambda s:(-s[1],s[0].lower()))
> print('Posts %s %s'%(len(set(p)),hd))
> for v in x: print(' %s %s'%(v[1],v[0]))
> print();print()
> m=(int(e)-int(y.argv[2])+1,int(e))
> printStat("From","Posters",m)
> printStat("Subject","Subjects",m)
> printStat("User-Agent","User-Agents",m)
> n.quit()
> -------------------------------------------------------------------
>
> usage:
> $ python stats.py groupname last_N_articles
> $ python stats.py comp.os.linux.advocacy 100
> $ python stats.py comp.lang.c 1000

The point of the exercise was to generate the counts from
xover, which is less harsh on the server.

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.11.0-rc5 Release: Mint 21.3 Mem: 258G
"Cause of crash: Inadvertent contact with the ground."

Subject: Re: newnewstally.pl
From: DFS
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Tue, 27 Aug 2024 14:39 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: newnewstally.pl
Date: Tue, 27 Aug 2024 10:39:27 -0400
Organization: A noiseless patient Spider
Lines: 175
Message-ID: <vakoes$3111b$1@dont-email.me>
References: <lj603aFet64U2@mid.individual.net> <vakjvo$309mh$1@dont-email.me>
<lj63u7Fet64U5@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 27 Aug 2024 16:39:24 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6f5bf3e5204c215fefb9e051ee48b752";
logging-data="3179563"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1iezop+9Yn3lzY0K2cufp"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:1wOYe6LuII9Ysr47sbxAokN/mBw=
In-Reply-To: <lj63u7Fet64U5@mid.individual.net>
Content-Language: en-US
View all headers

On 8/27/2024 9:51 AM, vallor wrote:
> On Tue, 27 Aug 2024 09:23:07 -0400, DFS <nospam@dfs.com> wrote in
> <vakjvo$309mh$1@dont-email.me>:
>
>> On 8/27/2024 8:45 AM, vallor wrote:
>>> So...I hauled-off and wrote the thing. Work in progress.
>>>
>>> $ cat newnewstally.pl
>>> #!/usr/bin/perl
>>>
>>> use Net::NNTP;
>>>
>>> sub Usage
>>> {
>>> select(STDERR);
>>> print "Usage: $0 group \"dd mmm yyyy\"\n";
>>> exit 1;
>>> }
>>>
>>>
>>> $group = shift || Usage();
>>> $date = shift || Usage();
>>>
>>> $fn_pw = `echo ~/bin/tallypw`;
>>> open($fn_pw,$fn_pw) || die;
>>> $username=<$fn_pw>;
>>> $password=<$fn_pw>;
>>> close($fn_pw);
>>>
>>> chomp($username);
>>> chomp($password);
>>>
>>> $n = new Net::NNTP('localhost', Port=>120); # using stunnel
>>>
>>> $n->authinfo($username,$password);
>>>
>>> @status = $n->group($group);
>>>
>>> #print "@status\n";
>>> #6055866 2 6055867 alt.fan.rush-limbaugh
>>>
>>> $rb = $status[2]+0;
>>> $lb = $rb-10000;
>>>
>>> #$fmt = $n->overview_fmt();
>>> #print join(',',@{ $fmt });
>>> #Subject:,From:,Date:,Message-ID:,References:,Bytes:,Lines:,Xref:full
>>>
>>> @msg_spec = ($lb,$rb);
>>>
>>> $xover = $n->xover(\@msg_spec);
>>>
>>> # The return value will be a reference to a hash where
>>> # the keys are the message numbers
>>> # and each value contains
>>> # a reference to an array
>>> # which contains the overview fields for that message.
>>>
>>> foreach $key (keys(%{$xover}))
>>> {
>>> # print join("\n",@{ $xover->{$key} });
>>> # print "\n";
>>> # exit 0;
>>> next unless ($xover->{$key}->[2] =~ m#$date#o);
>>> $from = $xover->{$key}->[1];
>>> next if ($from =~ m#^=\?UTF-8#o);
>>> $pcount{$from}++;
>>> }
>>>
>>> @sorted = sort
>>> { $pcount{$b} <=> $pcount{$a} }
>>> (keys(%pcount));
>>>
>>> foreach $key (@sorted)
>>> {
>>> printf("%4d %s\n",$pcount{$key},$key);
>>> }
>>>
>>> exit 0;
>>> - - cut here %< - -
>>>
>>> Sample output:
>>> $ ./newnewstally.pl comp.os.linux.advocacy '26 Aug 2024' | head -20
>>> 76 Skeeter <skeeterweed@photonmail.com>
>>> 34 Governor Swill <governor.swill@gmail.com>
>>> 21 Snit <brock.mcnuggets@gmail.com>
>>> 17 pothead <pothead@snakebite.com>
>>> 16 Joel <joelcrump@gmail.com>
>>> 15 Mitchell Holman <noemail@aol.com>
>>> 13 Chris Ahlstrom <OFeem1987@teleworm.us>
>>> 11 Blue Lives Matter <Iron_White@Systemic_Patrriotism.KMA>
>>> 8 -hh <recscuba_google@huntzinger.com>
>>> 7 John Smyth <smythlejon2@outlook.com>
>>> 7 "max headroom" <maximusheadroom@gmx.com>
>>> 5 Baxter <bax02_spamblock@baxcode.com>
>>> 4 rbowman <bowman@montana.com>
>>> 3 chrisv <chrisv@nospam.invalid>
>>> 3 unknown <novalidemail@toss.net>
>>> 3 John Smyth <smythlejon2@hotmail.com>
>>> 3 candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
>>> 3 vallor <vallor@cultnix.org>
>>> 3 kami <f00@0f0.00f>
>>> 2 Farley Flud <ff@linux.rocks>
>>>
>>> Comments welcome. :)
>>
>>
>> Perl is a hideous, dying, write-once language.
>
> Your opinion.

It's reality.

>> This is semi-obfuscated Python
>
> Why obfuscate it?

To make it more difficult for previous cola poster 'sbd' and his
developmentally-disabled children to understand.

> Also, see below.
>
>
>> -------------------------------------------------------------------
>> import sys as y,nntplib as t
>> s='news.eternal-september.org'
>> g=y.argv[1]
>> n=t.NNTP(s,119,'<usr>','<pwd>')
>> r,a,b,e,gn=n.group(g)
>> def printStat(st,hd,rg):
>> r,d=n.xhdr(st,'%s-%s'%rg)
>> p=[]
>> for i in range(len(d)):
>> v=d[i][1]
>> if st=='Subject':v=v[4:] if v[:3]=='Re:' else v
>> p.append(v)
>> x=[(i,p.count(i)) for i in set(p)]
>> x.sort(key=lambda s:(-s[1],s[0].lower()))
>> print('Posts %s %s'%(len(set(p)),hd))
>> for v in x: print(' %s %s'%(v[1],v[0]))
>> print();print()
>> m=(int(e)-int(y.argv[2])+1,int(e))
>> printStat("From","Posters",m)
>> printStat("Subject","Subjects",m)
>> printStat("User-Agent","User-Agents",m)
>> n.quit()
>> -------------------------------------------------------------------
>>
>> usage:
>> $ python stats.py groupname last_N_articles
>> $ python stats.py comp.os.linux.advocacy 100
>> $ python stats.py comp.lang.c 1000
>
> The point of the exercise was to generate the counts from
> xover,

I did counts by header.

I used significantly less code and data, but provided significantly more
analysis.

DFS and python ftw.

> which is less harsh on the server.

My 3 xhdr calls were no more harsh on the IT infrastructure and electric
grid than the 1 xover that returns massive amounts of extraneous,
unused data.

Subject: Re: newnewstally.pl
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 02:15 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.advocacy
Subject: Re: newnewstally.pl
Date: Tue, 3 Sep 2024 02:15:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <vb5rgq$367n9$4@dont-email.me>
References: <lj603aFet64U2@mid.individual.net> <vakjvo$309mh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 04:15:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6d8b6590145ff0d1f13101405f5f220c";
logging-data="3350249"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OI4q1V1lNrJOtrRxmLBzk"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:JBB8a5mWYhm6JxVpi5eWkNwKKQ0=
View all headers

On Tue, 27 Aug 2024 09:23:07 -0400, DFS wrote:

> Perl is a hideous, dying, write-once language.
>
> This is semi-obfuscated Python

Did you know Python’s nntplib is being deprecated?

Subject: Re: newnewstally.pl
From: DFS
Newsgroups: comp.os.linux.advocacy
Organization: A noiseless patient Spider
Date: Tue, 3 Sep 2024 14:22 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: newnewstally.pl
Date: Tue, 3 Sep 2024 10:22:50 -0400
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <vb763m$3c61t$2@dont-email.me>
References: <lj603aFet64U2@mid.individual.net> <vakjvo$309mh$1@dont-email.me>
<vb5rgq$367n9$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 03 Sep 2024 16:22:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c0771cd38551d656c02f137c58daed42";
logging-data="3545149"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0cV6p7P6KTe9plE8GcSRN"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:7QxUcfEnUcHXiP2xZHQJ1lJ49BY=
In-Reply-To: <vb5rgq$367n9$4@dont-email.me>
Content-Language: en-US
View all headers

On 9/2/2024 10:15 PM, Lawrence D'Oliveiro wrote:
> On Tue, 27 Aug 2024 09:23:07 -0400, DFS wrote:
>
>> Perl is a hideous, dying, write-once language.
>>
>> This is semi-obfuscated Python
>
> Did you know Python’s nntplib is being deprecated?

Yes, I've known about it since shortly after it was announced.

If you run the code you snipped, it will warn you:

"DeprecationWarning: 'nntplib' is deprecated and slated for removal in
Python 3.13"

To stop the warnings:

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)

But I should be able to copy Lib\nntplib.py from <3.13 to 3.13+ and
continue using it.

1

rocksolid light 0.9.8
clearnet tor