So I am trying to break this CSV data down a bit more, and grab a specific comma delimited piece of text. It is a wireshark CSV.
import csv
with open('wifi.csv', 'rt') as csvfile:
reader = csv.reader(csvfile, delimiter='\n', quotechar='\n')
for row in reader:
print(" ".join(row[0:1]))
Which only prints out rows. These rows contain comma delimited objects that are enclosed in double quotes. I'm trying to find a way to access these effectively.
Output: "85","23.128318","52.86.227.189","10.0.0.23","TCP","56","[TCP Retransmission] 443 > 61541 [FIN, ACK] Seq=32 Ack=33 Win=118 Len=0" "86","26.766224","fe80::1286:8cff:fe4f:d04d","ff02::1","ICMPv6","174","Router Advertisement from 10:86:8c:4f:d0:4d" "87","27.479193","10.0.0.23","104.70.61.253","SSL","55","Continuation Data"
I want to access these individually, so I can grab a specific one. But it isn't like a list or anything, and it is thinking it is string indicies.