Closed chris-greening closed 4 years ago
@chris-greening post.to_csv('test.csv', header=True, index=False, encoding='utf-8')
I guess this might help. This will encode all the texts into utf-8 format.
Can I send pull request for this bug?
@Devarsh-leo go for it!!!!
Describe the bug If there is an emoji in the caption of a post that has been scraped, it will throw a UnicodeEncodeError when attempting to use
Post.to_csv
instance method to write the data to .csv.To Reproduce
and this raises
Expected behavior It's expected that this would write the scraped data to a .csv file
Desktop (please complete the following information):