0xsanz
Mar 11, 2021

--

Hello Cathy, I had the same issue, turn out that it is the blank line that is getting inserted after appending to the CSV. Use the following code (assuming you are using python3):

with open('.data/places.csv', mode='a', newline='') as csv_file:

instead of

with open('.data/places.csv', mode='a') as csv_file:

Best of Luck!

--

--

0xsanz

Software Developer having keen interest in Security, Privacy and Pen-testing. Certs:- Security+,PenTest+,AZ900,AZ204,AZ500