I want to write my data crawl to .csv file, but it have more '\n'. This is my code:
for data in soup.find_all('b', {'class' : 'tur highlight'}):
write.writerow([word, data.get_text()])
And this is the result:
How to remove the blank rows? I use python 3.5