This commit is contained in:
Logen Kain 2024-01-10 12:33:23 -05:00
commit d2256217cc

68
eve-scanning.py Normal file
View File

@ -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)