Hello I am trying to scrape a website and its going fine, till the point I try to save the data into a csv via csv module writer
. I traced back to the data and find out that 7 aƱos
is the string which isn't allowing the data to store properly.
I READ A LOT ON THIS TOPIC BEFORE POSTING... BUT COULDN'T GRASP THE CONCEPT.
Python is throwing some encoding error which got me to reading and I found that csv
module isn't capable of unicode
.
Is there any suggestion?
Try to use following solution
Try to encode the string using encode function
Hope this will help you.