From d2256217cccc3974cf95622bc1ecdf19a247db93 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Wed, 10 Jan 2024 12:33:23 -0500 Subject: [PATCH] first --- eve-scanning.py | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 eve-scanning.py diff --git a/eve-scanning.py b/eve-scanning.py new file mode 100644 index 0000000..7584901 --- /dev/null +++ b/eve-scanning.py @@ -0,0 +1,68 @@ +import datetime +import pyperclip +def instructions(): + print(''' + 1. == To home wormhole + 2. == Wormhole away from home + 3. == Combat Site Data or Relic site. + 4. == Anons of interest + L == Low Sec + H == High Sec + N == Null Sec + J == Jspace (wormholes) + ''') + today = datetime.date.today() + print("\t", today.strftime('%d-%b-%y')) + print() + +contents = [] +line = ' ' +splitContents = [] + +#grab input +while True: + try: + line = input() + if line == '': + break + else: + contents.append(line) + + except EOFError: + break + +#Split the lines by tab +for line in contents: + splitContents.append(line.split('\t')) + +#put system name to frot of list +for line in range(len(splitContents)): + try: + splitContents[line].insert(0, splitContents[line].pop(3)) + except: + break + +#Alphabetize +splitContents.sort() + +#print out +prettyPrint = [] +print ("```") +prettyPrint.append("```") +instructions() +prettyPrint.append(instructions()) +last = "nullnope" +for line in range(len(splitContents)): + try: + if last != splitContents[line][0]: + print(splitContents[line][0]) + prettyPrint.append(splitContents[line][0]) + last = splitContents[line][0] + print("\t", splitContents[line][1]) + prettyPrint.append(splitContents[line][1]) + + except: + break +print ("```") +prettyPrint.append("```") +pyperclip.copy(prettyPrint)