Anthology Scripts

This commit is contained in:
Norm Rasmussen
2023-10-31 16:16:11 -04:00
parent be3a893a93
commit 79721ef1e5
4 changed files with 9920 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,26 @@
import csv
import re
listtuple = []
linelist = []
count = 0
with open('./Workflows_js_nodes.js', 'r') as file:
for num, line in enumerate(file, 1):
if "<<<" in line:
linelist.append(num)
if ">>>" in line:
linelist.append(num)
linelist = sorted(linelist)
x = len(linelist)
try:
while count in range(x):
count += 1
temp_tupe = (linelist[0], linelist[1])
listtuple.append(temp_tupe)
linelist.pop(0)
linelist.pop(1)
except IndexError as e:
print(e)
print(listtuple)