Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: PMplanet has a new home

by WizardOfUz (Friar)
on Feb 07, 2010 at 14:03 UTC ( [id://821842]=note: print w/replies, xml ) Need Help??


in reply to Re^2: PMplanet has a new home
in thread PMplanet has a new home

I think I'll add a button or something so people can manually remove their own home node from the home node cache, so you'll show up with the updated data on the next run.

Why not use the Recently Updated Home Nodes list for that?

Replies are listed 'Best First'.
Re^4: PMplanet has a new home
by bart (Canon) on Feb 07, 2010 at 14:39 UTC

    That sounds like a great idea, except:

    • It doesn't work reliably. I just changed something on my home node, and it doesn't appear in that list... You probably have to check "This is a significant update" for that.
    • There is no usable XML view. All I see is code.

      If you view your homenode in xml, there is "updated" (as in <node id="442602" title="planetscape" created="2005-03-27 04:28:58" updated="2008-01-24 22:33:38">)

      So perhaps if that date is within a certain time limit, you may want to look at their coordinates to see if they've changed?

      HTH,

      planetscape
        What I'm trying to minimize is the number of times I have to fetch somebody's home node. Once I got it, I can just as well parse the coordinates.

        Fetching one single page with an overview with all recent changes for all users would have been useful. Fetching a page for every individual user, not so much.

      You probably have to check "This is a significant update" for that.

      Yes, I think so too.

      There is no usable XML view.

      This seems to work:

      #!/usr/bin/perl use strict; use warnings; open( my $fh, '<', "/home/joerg/dump.html" ) or die $!; my $html = do { local( $/ ); <$fh> }; close $fh; my @nodes; while ( $html =~ s!<tr><td><a href="\?node_id=(\d+)">([^<]+)</a></td>< +td>\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d</td></tr>!! ) { push @nodes, [ $2, $1 ]; } print "@{$_}\n" for @nodes;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found