• Welcome to the new forums! Server IP: smp.hometownmc.com
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding my true birthday.
#4
I wrote a program to decompress every log I have (december 26th 2015 onwards) and check every line for the substring "Cilgalad" and ended up with 244 results. The earliest I've got is the 1st February 2016 with you being a Guest:

Code:
2016-01-02-6.log.gz b'[22:55:24] [Client thread/INFO]: [CHAT] Cilgalad joined the game\r\n'
2016-01-02-6.log.gz b'[23:08:36] [Client thread/INFO]: [CHAT] [Minigames] Cilgalad has been auto-balanced to Green Team\r\n'
2016-01-02-6.log.gz b'[23:12:10] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> i died im sad\r\n'
2016-01-02-6.log.gz b'[23:14:45] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> WELCOME\r\n'
2016-01-02-6.log.gz b'[23:17:45] [Client thread/INFO]: [CHAT] [Guest] JKitten6 >> i have over 64 diamonds Cilgalad\r\n'
2016-01-02-6.log.gz b'[23:19:46] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> how do u get in the giveaway frost?\r\n'
2016-01-02-6.log.gz b'[23:26:35] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> can some1 who alread has a rank that got an egg donate it to me\r\n'
2016-01-02-6.log.gz b'[23:29:20] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> is the rank giveaway over\r\n'
2016-01-02-6.log.gz b'[23:29:31] [Client thread/INFO]: [CHAT] [VIP3] ThatChicken1 >> Yes, Cilgalad\r\n'
2016-01-02-6.log.gz b'[23:32:39] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> is teaming allowed in this game\r\n'
2016-01-02-6.log.gz b'[23:39:03] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> i dont think i 3 man team is fair\r\n'
2016-01-02-6.log.gz b'[23:39:32] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> what does first place win?\r\n'
2016-01-02-6.log.gz b'[23:40:45] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> any1 voting for me?\r\n'
2016-01-02-6.log.gz b'[23:41:20] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> welcome\r\n'
2016-01-02-6.log.gz b'[23:41:58] [Client thread/INFO]: [CHAT] [Guest] Cilgalad >> i have a suggestion no teams so there is more fighting\r\n'
2016-01-05-1.log.gz b'[18:41:29] [Client thread/INFO]: [CHAT] Player: [Rookie] Cilgalad, [Rookie] onlineboy74, [Rookie] sebo599\r\n'
2016-01-05-1.log.gz b'[18:52:47] [Client thread/INFO]: [CHAT] [Rookie] Cilgalad >> hosting build battle at /waro cloudclover\r\n'
2016-01-05-1.log.gz b'[18:53:39] [Client thread/INFO]: [CHAT] [Rookie] Cilgalad >> hello penguin and blackbeuty follow me\r\n'
2016-01-05-1.log.gz b'[18:54:29] [Client thread/INFO]: [CHAT] [Rookie] Cilgalad >> follow me\r\n'


Hope that helps <3

If anyone else wants to do this, here's the code:

Code:
import gzip
from os import listdir

def search(substring):
    for file in listdir():
        if file.endswith('.log'):
            with open(file, 'r') as contents:
                for line in contents:
                    if substring in line.lower():
                        print(file, line)
        elif file.endswith('.log.gz'):
            with gzip.open(file, 'r') as contents:
                for line in contents:
                    if substring in str(line).lower():
                        print(file, str(line))

search(input().lower())
[Image: P4HqY8y.png]
 
Reply
  


Messages In This Thread
Finding my true birthday. - by Cil - 04-01-2019, 11:40 AM
RE: Finding my true birthday. - by Penguin - 04-01-2019, 09:25 PM
RE: Finding my true birthday. - by Cil - 04-01-2019, 09:42 PM
RE: Finding my true birthday. - by Penguin - 04-02-2019, 07:20 AM
RE: Finding my true birthday. - by Cil - 04-02-2019, 07:56 AM
RE: Finding my true birthday. - by Penguin - 04-02-2019, 08:02 AM
RE: Finding my true birthday. - by Cil - 04-03-2019, 05:47 AM
RE: Finding my true birthday. - by Penguin - 04-03-2019, 06:48 AM
RE: Finding my true birthday. - by Cil - 04-03-2019, 07:11 AM
RE: Finding my true birthday. - by Cil - 07-06-2019, 11:43 AM

Forum Jump:


Browsing: 1 Guest(s)