Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Playing with PerlMonks site (0) - See what user was more active

by jmcnamara (Monsignor)
on Jul 25, 2002 at 08:31 UTC ( #185148=note: print w/replies, xml ) Need Help??


in reply to Playing with PerlMonks site (0) - See what user was more active


Nice idea. :-)

When I ran the program I noticed that some users were missing from the list. This is due to the regex that extracts the usernames. This is a bit better:

# Don't strip the tags #$html =~ s/<.*?>//gs ; my (@users) = $html =~ /<td>by\s[^>]+>([^<]+)/gs ; # Or this if there are Perlmonks with "<" in their username my (@users) = $html =~ m[<td>by\s[^>]+>(.*?)</a>]gs ;

--
John.

  • Comment on Re: Playing with PerlMonks site (0) - See what user was more active
  • Download Code

Replies are listed 'Best First'.
Re: Re: Playing with PerlMonks site (0) - See what user was more active
by gmpassos (Priest) on Jul 25, 2002 at 19:14 UTC
    Well, I just made it for fun. About the tags, if the user has < or > in the username, I think that the system show this in the html source like &lt; and &gt;, or we cant see this in the browser! Thanks for the reply! Make your code for "Playing with PerlMonks site" too.

    "The creativity is the expression of the liberty".

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2020-03-28 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (168 votes). Check out past polls.

    Notices?