bellingcat / instagram-location-search

Finds Instagram location IDs near a specified latitude and longitude.
https://pypi.org/project/instagram-location-search/
MIT License
573 stars 83 forks source link

utf-8 encoding #17

Open marcchehab opened 1 year ago

marcchehab commented 1 year ago

had the following error, but it works with utf-8 encoding

File "C:\Python311\Lib\site-packages\instagram_locations\instagram_locations.py", line 229, in main writer.writerow(row) File "C:\Python311\Lib\csv.py", line 154, in writerow return self.writer.writerow(self._dict_to_list(rowdict)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: 'charmap' codec can't encode character '\u2764' in position 17: character maps to