Forums Kongregate

Kongregate American Calculator

40 posts

Flag Post

After seeing 123aaa789 make the extended leaderboards, I decided to do something similar to it. I created a little program that goes through a user’s last 200 forum posts, and based on the times of posting, the program can determine sleep habits and calculate whether or not the user is an American (yes I generalized it, it actually determines if you live close to America).



Here’s the link to the code written in Python 3.4:


http://pastebin.com/tNMEqtEP (fixed some typos, sleeping times)


Here’s an example of the output:


Enter User ID: 5506829
Evaluating forum data from User ID: 5506829
Analyzing last 200 posts…
Analyzing posts 1-20…
Analyzing posts 21-40…
Analyzing posts 41-60…
Analyzing posts 61-80…
Analyzing posts 81-100…
Analyzing posts 101-120…
Analyzing posts 121-140…

Posts by hour (PDT):
00:
01:
02:
03:
04:
05:
06:
07: x
08: xxxxxxxx
09: xxxxxxxx
10: xxxxxxxxxx
11: xxxxxxxx
12: xxxxxxxxxx
13: xxxx
14: xxxxx
15: xxxxx
16: xxxxx
17: xxxxxxxxxxxxx
18: xxxxxx
19: xxxxxxxxx
20: xxxxxxxxx
21: xxxxxxxxxxxxx
22: xxxxxxxxxxxxx
23: xxxx

You sleep at around: 0 o’clock (PDT).
Therefore, you probably ARE an American!
…Or you have terrible sleeping habits.


I can also run tests for users who are interested :)

 
Flag Post

ooo oooo try it on me.
Update: The Results
Enter User ID: 1460387
Evaluating forum data from User ID: 1460387
Analyzing last 200 posts…
Analyzing posts 1-20…
Analyzing posts 21-40…
Analyzing posts 41-60…
Analyzing posts 61-80…
Analyzing posts 81-100…
Analyzing posts 101-120…
Analyzing posts 121-140…
Analyzing posts 141-160…
Analyzing posts 161-180…
Analyzing posts 181-200…

Posts by hour (PDT):
00:
01:
02:
03: xxxxxxxxxx
04: xxx
05: xxxxxxxxx
06: xx
07: xxxxxxxxxxxxxxxxxxxxxxxx
08: xxxx
09: xxxxxxxxxxxxxxxx
10: xxxxxxxxxxxx
11: xxxxxxxxxxxxxx
12: xxxxxxxxxxxxxx
13: xxxxxxxxxxx
14: xxxxxxx
15: xxxxxxxxx
16: xxxxxxxxxxxxxxxxx
17: xxxxxxxxxxxxxxxxx
18: xxxxxxxxxxxxxx
19: xxxxxxxxxxxxxxxxxxx
20: xxxxxxxxxxxxxxxxxxxxxxxxxxx
21: xxxxxxxxxxxxxx
22: xxxxxx
23: x

You sleep at around: 23 o’clock (PDT).
Therefore, you are probably ARE an American!
…Or you have terrible sleeping habits.

Which is scary because I do go to bed around that time. Which is 2:00 AM EST

 
Flag Post

LakeSnows interested on this as well

 
Flag Post

I’ll PM people the results to keep stalking to a minimum (I hope). But honestly nothing is stopping people from downloading the program and running it themselves :0

Originally posted by Tulrog:

Nice! Now make one that lists which person the user responded to most. Stalking shouldn’t be so hard these days.

This shouldn’t be too hard… I can do a lot of stuff with this data :p

 
Flag Post

Try me

 
Flag Post

My results are

Here are the results!

Enter User ID: 9651698
Evaluating forum data from User ID: 9651698
Analyzing last 200 posts…
Analyzing posts 1-20…
Analyzing posts 21-40…
Analyzing posts 41-60…
Analyzing posts 61-80…
Analyzing posts 81-100…
Analyzing posts 101-120…
Analyzing posts 121-140…
Analyzing posts 141-160…
Analyzing posts 161-180…
Analyzing posts 181-200…

Posts by hour (PDT):
00: x
01:
02:
03:
04:
05:
06: x
07: xxxxxxxxxxxxx
08: xxxxxxxxxxxxxxx
09: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
10: xxxxx
11: xxxxxxxxxx
12: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
13: xxxxxxxxxxxxxxxxxxx
14: xxxxxxxxxxxx
15: xxxxxxxxxxxxxxxxx
16: xxxxxxxxxxx
17: xxxxxxxxxxxx
18: xxxxxxxxxxxxxxxxxx
19: xxxxxxxxx
20: xxxxxxx
21: xxxxxxxxxxxx
22: xxxxxxxxxxxxx
23: xxxxxxxxx

You sleep at around: 0 o’clock (PDT).
Therefore, you are probably ARE an American!
…Or you have terrible sleeping habits.

I have a lot at 09 because Im answering on Forum Games “The List” on that time

 
Flag Post

Mine is very weird, like 50 percent of my posts are at 7 AM

Enter User ID: 1178291
Evaluating forum data from User ID: 1178291
Analyzing last 200 posts…
Analyzing posts 1-20…
Analyzing posts 21-40…
Analyzing posts 41-60…
Analyzing posts 61-80…
Analyzing posts 81-100…
Analyzing posts 101-120…
Analyzing posts 121-140…
Analyzing posts 141-160…
Analyzing posts 161-180…
Analyzing posts 181-200…

Posts by hour (PDT):
00: x
01:
02:
03:
04:
05:
06: xxxx
07: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
08: xxxxxxxxxxxx
09: xxxxxxxxxxxxxxxxxxxxxx
10: xxxxxxx
11: xxx
12: xxxxxx
13: xxxxxx
14: xxxxxxxxxxxx
15: xxxxxxxxxxxxx
16: xxxxxx
17: xxxxxxx
18: xxxxxxxxx
19: xxxxxxxxxxxxxx
20: xxxxxxx
21: xxxxx
22: xxx
23:

You sleep at around: 0 o’clock (PDT).
Therefore, you are probably ARE an American!
…Or you have terrible sleeping habits.

 
Flag Post

Can you try me :3

 
Flag Post

I can also run tests for users who are interested :

Ooohhh, do me :3

 
Flag Post

Do me, too.


Enter User ID: 7868884
Evaluating forum data from User ID: 7868884
Analyzing last 200 posts…
Analyzing posts 1-20…
Analyzing posts 21-40…
Analyzing posts 41-60…
Analyzing posts 61-80…
Analyzing posts 81-100…
Analyzing posts 101-120…
Analyzing posts 121-140…
Analyzing posts 141-160…
Analyzing posts 161-180…
Analyzing posts 181-200…
Posts by hour (PDT):
00:
01:
02:
03: x
04: xxxxxxxxxxxxxxx
05: xxxxxxxxxxxxxxxxxxxx
06: xxxxxxx
07: xxxxxxxxxxxxxx
08: xxxxxxxxxxxxxxxxxxxxxxx
09: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
10: xxxxxxxxxxxxxxxxxxxxx
11: xxxxxxxxxxxxxx
12: xxxxxxxx
13: xxxxxxxxxxxxxxxxxx
14: xxxxx
15: xxxxxxxxxxxxxxx
16: xxxxxxxxxxxxx
17: xxxxxxxxxxxxxxxx
18: xxxxxxxxxx
19: xxxxxxx
20: xxxxxxxx
21: xxxx
22: x
23: x
You sleep at around: 22 o’clock (PDT).
Therefore, you are probably ARE an American!
…Or you have terrible sleeping habits.


Thanks for doing me, CHARLESing.

 
Flag Post

Enter User ID: 430839
Evaluating forum data from User ID: 430839
Analyzing last 200 posts…
Analyzing posts 1-20…
Analyzing posts 21-40…
Analyzing posts 41-60…
Analyzing posts 61-80…
Analyzing posts 81-100…
Analyzing posts 101-120…
Analyzing posts 121-140…
Analyzing posts 141-160…
Analyzing posts 161-180…
Analyzing posts 181-200…
Posts by hour (PDT):
00: xxxx
01: x
02:
03:
04:
05: xxxxx
06: xxxxxx
07: xxxxxxxxxxxxxxxx
08: xxxxxxxx
09: xxxxxxxxxxxxxxx
10: xxxxxxxxxxxxxx
11: xxxxxxxxxxx
12: xxxxxxxxxxxx
13: xxxxxxxxxxx
14: xxxxxxxxx
15: xxxxxxxxxx
16: xxxxxxxxxx
17: xxxxxxxxxxxxxxx
18: xxxxxxxxxxxxxxxxxxxxxxxx
19: xxxxxxxxxxxxxxxx
20: xxxxxxxxxxxxxxxxx
21: xxxxxxxxxxxxx
22: xxxxxxxxxxxxxxxxxxxxxxxx
23: xxxxxxxxx
You sleep at around: 0 o’clock (PDT).
Therefore, you are probably ARE an American!
…Or you have terrible sleeping habits.

Thanks a lot!

 
Flag Post

No problem Adv0 and WiiPlayer :)

 
Flag Post

This is pretty interesting work, glad I somewhat inspired you to do this.

 
Flag Post

Thanks haha. So I’ve finished the flash version of this, but I can’t upload it because Kongregate does not allow URLRequests in Flash games (I think)…

 
Flag Post

Oh boy, I wonder how bad mine would look like. Would it be possible for you to do mine too?

 
Flag Post
Originally posted by CHARLESing:

Thanks haha. So I’ve finished the flash version of this, but I can’t upload it because Kongregate does not allow URLRequests in Flash games (I think)…

Might want to check out this game
It’s obviously getting kong user data somehow

 
Flag Post
Originally posted by LouWeed:
Originally posted by CHARLESing:

Thanks haha. So I’ve finished the flash version of this, but I can’t upload it because Kongregate does not allow URLRequests in Flash games (I think)…

Might want to check out this game
It’s obviously getting kong user data somehow

Possibly through just the .json like how my script runs, it’s a different methodology than the one being used here, due to how Kong lets the data be retrieved.

 
Flag Post

can you check mine?

 
Flag Post
Originally posted by 123aaa789:
Originally posted by LouWeed:
Originally posted by CHARLESing:

Thanks haha. So I’ve finished the flash version of this, but I can’t upload it because Kongregate does not allow URLRequests in Flash games (I think)…

Might want to check out this game
It’s obviously getting kong user data somehow

Possibly through just the .json like how my script runs, it’s a different methodology than the one being used here, due to how Kong lets the data be retrieved.

My tool goes through html pages so it’s a little different, yes. I’ll investigate more about Kongregate’s limitation on html parsing tomorrow I guess.

 
Flag Post

Pretty neat program. :o

 
Flag Post

Why use it?

 
Flag Post

Do me too please :)

 
Flag Post
Originally posted by yeasy:

Why use it?

Why not?

 
Flag Post

Funny, OP.

All the countries in the world belong to America.

 
Flag Post
Originally posted by CHARLESing:

Thanks haha. So I’ve finished the flash version of this, but I can’t upload it because Kongregate does not allow URLRequests in Flash games (I think)…

Kongregate does allow URLRequests in Flash games (in fact I’m not really sure if there’s a way to disable them)

Thing is, flash itself doesn’t allow to load content from other domains unless those domains have a proper crossdomain policy. (More info about crossdomain policies here )

kongregate.com hasn’t got a crossdomain policy so you can’t load content from there (since the games are hosted on chat.kongregate.com, and different subdomains count as crossdomain). Homever, you can use your own server, add a crossdomain policy to accept requests from chat.kongregate.com and request the posts page from the server to return it to the game.