00:00
00:00
RedN
Hello,I am a young Algerian, currently a cybersecurity engineer.

Redouane @RedN

Age 26, Male

Paris, France

Joined on 8/7/12

Level:
29
Exp Points:
8,932 / 9,340
Exp Rank:
3,999
Vote Power:
7.04 votes
Rank:
Major
Global Rank:
598
Blams:
1,373
Saves:
14,664
B/P Bonus:
40%
Whistle:
Deity
Medals:
10,598

messing around with the NG BBS topics

Posted by RedN - March 18th, 2016


I wrote a small program in Ruby that can gather interesting stats from any given topic in the NG forums:

1) The users who have posted the most in the given topic.

2) How many supporters,moderators,staff members have posted in the topic.

3) How many people with a given aura (gamers, audiophiles, programmers etc.) have posted in the topic.

4) The levels of the posters.

Tried finding the user who has posted the most on http://www.newgrounds.com/bbs/topic/1384710  (New User Introduction Thread), result :

It was kinda slow, 55 seconds to go through 1351 posts.4256992_145831977863_BJOO10u.png

Well, the topic has 1351 posts, and DoctorStrongBad has 243/1351 = 18% of the posts there, almost 1/5 !

The resulting USERS hash will contain all the posters, their post counts in the topic, their level, status, aura...

What is interesting is that it's possible to represent the data in a pie chart, with :

- Only 2 options : supporters vs non-supporters.

- Staff, Moderators and Members.

- By the levels (with or without ranges like 10-20,20-30 etc.).

- By the auras.

- By the usernames (only the top posters)

I found a good Ruby library to do it (https://github.com/topfunky/gruff).

[EDIT] Here is the script, if anyone's interested: http://www.newgrounds.com/dump/item/0a7a3a1990093dffaabbbc772f03a22f


Comments

That's pretty sweet man, maybe tell Tom about it? Maybe he could use it for something

Thanks, I don't think that Tom could need it, because he's able to run code on the server side.
You're welcome if you want the source code, or just an executable.