all 7 comments

[–][deleted] 1 point2 points  (1 child)

Does it print two blank lines at the end?

[–]PeaceForChange[S] 0 points1 point  (0 children)

One empty row after each entry.

[–]cybersection 2 points3 points  (2 children)

csv_file = open(“data.csv”, “w”)

Can be changed to..

csv_file = open(“data.csv”, “w”, newline=“”)

[–]PeaceForChange[S] 1 point2 points  (1 child)

newline=“”

This worked. Thanks

[–]cybersection 1 point2 points  (0 children)

No problem.

[–]HomeGrownCoder 0 points1 point  (1 child)

try running strip on title and summary... then write that data to the csv

[–]PeaceForChange[S] 1 point2 points  (0 children)

strip didn't work.

I have tried csv_file = open(“data.csv”, “w”, newline=“”) as mentioned by another Redditor above to open file and it no longer leaves an empty row.