@ get_fb_posts_fb_page.py
vijayanandrp opened this issue · 1 comments
vijayanandrp commented
I got an exception
UnicodeEncodeError: 'charmap' codec can't encode characters in position 42-43: character maps to \<undefined\>
Fixed by adding - utf-8
File - get_fb_posts_fb_page.py
def scrapeFacebookPageFeedStatus(page_id, access_token, since_date, until_date):
with open('{}_facebook_statuses.csv'.format(page_id), 'w', encoding='utf-8') as file:
vijayanandrp commented
Similarly for all open() function used to read and write csv files