minimaxir/facebook-page-post-scraper

@ get_fb_posts_fb_page.py

vijayanandrp opened this issue · 1 comments

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:

Similarly for all open() function used to read and write csv files