Kuro5hin.org: technology and culture, from the trenches
create account | help/FAQ | contact | links | search | IRC | site news
[ Everything | Diaries | Technology | Science | Culture | Politics | Media | News | Internet | Op-Ed | Fiction | Meta | MLP ]
We need your support: buy an ad | premium membership | k5 store

[P]
K5 Utility Script #1 (Diaries)

By llimllib
Tue May 27th, 2003 at 07:59:18 PM EST

llimllib's Diary

Inside is a script to count the number of diaries, comments, comment ratings, and/or stories by any user of this site. It's only been tested on Linux with Python 2.2 and on mine and rusty's accounts, so there could still be errors. Feel free to comment/criticize, it's appreciated.

Just for the record, rusty has posted 3188 comments, in my program's estimation.


It is available here. I would have put the source of the program here, as it's only 150 lines or so, but I wasn't sure if this is cool. So, if anyone who runs this place would like me to, just say the word and I'll pull it. I just think it's easier than paging through people's (and my own) comment pages to see how many I've posted. Don't recognize a story author's name? just type "python k5_count.py -u AnonymousUser -cds" into a terminal window to see how many comments, diaries and stories they've posted.

Sponsors
Voxel dot net
o Managed Servers
o Managed Clusters
o Virtual Hosting


Collocated Linux/FreeBSD Server
As low as $45/month
o Root on your own FreeBSD or Linux server
o Very fast, triple-homed network
o NO hardware or setup fees, unlimited support
Testimonials from K5 Users

Login
Make a new account
Username:
Password:

Note: You must accept a cookie to log in.

Related Links
o here
o llimllib's Diary


View: Display: Sort:
K5 Utility Script #1 | 20 comments (20 topical, 0 editorial, 0 hidden)
Well now (5.00 / 2) (#13)
by rusty on Tue May 27th, 2003 at 10:38:39 PM EST
(rusty@kuro5hin.org) http://www.kuro5hin.org/

No sense in having a screen-scraper to do things that would be quicker done in the code. Check out your user info page.

____
I thought you'd be out cliff diving off the coast of indonesia with spider monkeys tripping on acid. --lumpenprole
Bastard! (5.00 / 1) (#16)
by ucblockhead on Tue May 27th, 2003 at 11:14:03 PM EST
(ucblockhead at is.worsethanhitler.org) http://www.ucblockhead.org/journal

Just make my pathetic loserhood obvious by showing how much time I waste here, why don't you!?
-----------------------
This is k5. We're all tools - duxup
[ Parent ]
Could be worse (5.00 / 1) (#17)
by rusty on Tue May 27th, 2003 at 11:16:22 PM EST
(rusty@kuro5hin.org) http://www.kuro5hin.org/

I almost added "And has been a member since..." :-)

____
I thought you'd be out cliff diving off the coast of indonesia with spider monkeys tripping on acid. --lumpenprole
[ Parent ]
been embarrassed before (none / 0) (#18)
by llimllib on Wed May 28th, 2003 at 01:17:46 AM EST
(llimllib at f2o .. org)

sure it'll happen again. Still, a productive morning as I learned more re and urllib.


Peace.
[ Parent ]
Doesn't count archived comments? (5.00 / 1) (#10)
by natael on Tue May 27th, 2003 at 09:23:50 PM EST
(tpayne@mac.com) http://www.natael.net



I clicked the link (3.50 / 3) (#9)
by A Proud American on Tue May 27th, 2003 at 09:03:14 PM EST
(AIM: A Proud USian)

But nothing seems to have happened.  

Perhaps I need a new mathematics software library (the file is of type dot-pie apparently).

____________________________
The weak are killed and eaten...


hmm (5.00 / 1) (#3)
by Timo Laine on Tue May 27th, 2003 at 08:35:04 PM EST
http://www.timoroso.com/

I have posted 56 comments (57 after this one), but it says I've only posted 54.

investigating... (nt) (none / 0) (#6)
by llimllib on Tue May 27th, 2003 at 08:43:36 PM EST
(llimllib at f2o .. org)



Peace.
[ Parent ]
IF your program is correct (5.00 / 1) (#1)
by MisterQueue on Tue May 27th, 2003 at 08:15:39 PM EST
Ghost Reporting: I'm Gone!

I have posted WAAAY more comments than rusty has.. even though I've been here less than half as long. This fact actually scares me.

-Q

-------
"Why don't you sell MisterQueueTM Brand thongs?" -j3
"You and tixy are th

your diaries (5.00 / 3) (#2)
by llimllib on Tue May 27th, 2003 at 08:21:32 PM EST
(llimllib at f2o .. org)

You probably have a lot more diaries, and you respond to almost every comment in said diaries. This makes you geekier than rusty. Sorry.


Peace.
[ Parent ]
speaking of not being able to write code (5.00 / 2) (#5)
by MisterQueue on Tue May 27th, 2003 at 08:43:11 PM EST
Ghost Reporting: I'm Gone!

does it take into account all the diaries and comments that are in the archive? That's a totally different search you know.

-Q

-------
"Why don't you sell MisterQueueTM Brand thongs?" -j3
"You and tixy are th
[ Parent ]

nope (none / 0) (#7)
by llimllib on Tue May 27th, 2003 at 08:44:11 PM EST
(llimllib at f2o .. org)

neither does my script nor did I know. Explain?

Peace.
[ Parent ]
now i see (5.00 / 1) (#8)
by llimllib on Tue May 27th, 2003 at 08:45:38 PM EST
(llimllib at f2o .. org)

it involves checking that little box, then adding that to the total...revisions to come...


Peace.
[ Parent ]
geekier? (5.00 / 2) (#4)
by MisterQueue on Tue May 27th, 2003 at 08:38:22 PM EST
Ghost Reporting: I'm Gone!

shit... that sucks.. especially since I can't even code decently...

-Q

-------
"Why don't you sell MisterQueueTM Brand thongs?" -j3
"You and tixy are th
[ Parent ]

New low-code MisterQueue (5.00 / 1) (#11)
by rusty on Tue May 27th, 2003 at 10:15:59 PM EST
(rusty@kuro5hin.org) http://www.kuro5hin.org/

All the geekiness of rusty, with none of the fattening coding skills!

____
I thought you'd be out cliff diving off the coast of indonesia with spider monkeys tripping on acid. --lumpenprole
[ Parent ]
I think you just gave me a new site slogan. (none / 0) (#12)
by MisterQueue on Tue May 27th, 2003 at 10:20:50 PM EST
Ghost Reporting: I'm Gone!


-Q

-------
"Why don't you sell MisterQueueTM Brand thongs?" -j3
"MisterQueue: All th
[ Parent ]

Damn (none / 0) (#14)
by rusty on Tue May 27th, 2003 at 10:58:28 PM EST
(rusty@kuro5hin.org) http://www.kuro5hin.org/

You've still got more comments than me with the accurate count (though not by much), and absurdly more diaries. I kick your ass for stories though. Amateur. :-)

____
I thought you'd be out cliff diving off the coast of indonesia with spider monkeys tripping on acid. --lumpenprole
[ Parent ]
what? (none / 0) (#15)
by MisterQueue on Tue May 27th, 2003 at 11:06:07 PM EST
Ghost Reporting: I'm Gone!

you expect me to produce actual content?

I mean.. meaningful content that is.

Did you count the other accounts? I mean, if anyone knows them, surely you do.

-Q

-------
"Why don't you sell MisterQueueTM Brand thongs?" -j3
"MisterQueue: All th
[ Parent ]

Other accounts (none / 0) (#19)
by wiredog on Wed May 28th, 2003 at 08:19:25 AM EST
(kitcase cocks (but with an x) net)

That would be, like, 40,000 or so other accounts. Since everyone is the Q. Or is everyone the goat? I can never keep it straight.

Wilford Brimley scares my chickens.
Phil the Canuck

[ Parent ]
It doesn't really matter (none / 0) (#20)
by MisterQueue on Wed May 28th, 2003 at 10:03:07 AM EST
Ghost Reporting: I'm Gone!

we're one and the same, as our Wondertwin Shirts will attest to.

As for never keeping it straight, I'd suggest viagra.

-Q

-------
"Why don't you sell MisterQueueTM Brand thongs?" -j3
"MisterQueue: All th
[ Parent ]

K5 Utility Script #1 | 20 comments (20 topical, 0 editorial, 0 hidden)
View: Display: Sort:

kuro5hin.org

[XML]
All trademarks and copyrights on this page are owned by their respective companies. The Rest © 2000 - 2003 Kuro5hin.org Inc.
See our legalese page for copyright policies. Please also read our Privacy Policy.
Kuro5hin.org is powered by Free Software, including Apache, Perl, and Linux, The Scoop Engine that runs this site is freely available, under the terms of the GPL.
Need some help? Email help@kuro5hin.org.
Erik Benson is a deadbeat.

Powered by Scoop create account | help/FAQ | mission | links | search | IRC | YOU choose the stories! K5 Store by Jinx Hackwear Syndication Supported by NewsIsFree