Skip to content

Commit

Permalink
Get all users endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanB committed Sep 12, 2024
1 parent c47c975 commit aaa4c73
Show file tree
Hide file tree
Showing 5 changed files with 23,748 additions and 15 deletions.
15 changes: 15 additions & 0 deletions convert_to_csv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import csv

def convert_to_csv(input_file, output_file):
with open(input_file, 'r') as infile, open(output_file, 'w', newline='') as outfile:
csv_writer = csv.writer(outfile)

for line in infile:
# Strip whitespace and split the line by tabs or multiple spaces
row = line.strip().split()
if len(row) == 8: # Ensure we have the correct number of columns
csv_writer.writerow(row)

if __name__ == "__main__":
convert_to_csv('matches.txt', 'matches.csv')
print("Conversion complete. Data saved to matches.csv")
Loading

0 comments on commit aaa4c73

Please sign in to comment.