Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Revamping... Best/Worst Nodes archives

by OeufMayo (Curate)
on Jun 30, 2001 at 01:30 UTC ( #92819=note: print w/ replies, xml ) Need Help??


in reply to Revamping 'Best Nodes of All Time' List

I actually whipped up a script last week, that is scheduled to run once a day, which fetches the Best Nodes and Worst Nodes nodes in raw mode. I don't have any post-processing done for the HTML I'm getting back, but it shouldn't be too hard to make a searchable archives for previous Best/Worst nodes.

#!/usr/bin/perl -w use strict; use LWP::Simple ('getstore'); my @d = localtime; my $file = sprintf("%4i%02i%02i", $d[5]+1900, ++$d[4], $d[3]); for ('best', 'worst'){ my $url = "http://perlmonks.org/index.pl?node=$_+nodes&displa +ytype=raw"; my $html = getstore($url, 'bestworst/' . $file . "$_.html") or + warn "Cannot get $url: $!\n"; } exit 0;
<kbd>--
my $OeufMayo = new PerlMonger::Paris({http => 'paris.mongueurs.net'});</kbd>


Comment on Re: Revamping... Best/Worst Nodes archives
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://92819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-04 22:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls