megadose / toutatis

Toutatis is a tool that allows you to extract information from instagrams accounts such as e-mails, phone numbers and more
GNU General Public License v3.0
1.9k stars 237 forks source link

UnicodeEncodeError: 'charmap' codec can't encode characters #64

Closed Beldramma closed 1 year ago

Beldramma commented 1 year ago

Hi, First, thanks for your tool. I have observed errors using toutatis for four differents accounts :

Traceback (most recent call last): File "AppData\Local\Programs\Python\Python39\Scripts\toutatis-script.py", line 33, in <module> sys.exit(load_entry_point('toutatis==1.26', 'console_scripts', 'toutatis')()) File "AppData\Local\Programs\Python\Python39\lib\site-packages\toutatis-1.26-py3.9.egg\toutatis\core.py", line 101, in main File "AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 25-26: character maps to <undefined>

Traceback (most recent call last): File "\AppData\Local\Programs\Python\Python39\Scripts\toutatis-script.py", line 33, in <module> sys.exit(load_entry_point('toutatis==1.26', 'console_scripts', 'toutatis')()) File "\AppData\Local\Programs\Python\Python39\lib\site-packages\toutatis-1.26-py3.9.egg\toutatis\core.py", line 92, in main File "\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 25-29: character maps to <undefined>

Traceback (most recent call last): File "\AppData\Local\Programs\Python\Python39\Scripts\toutatis-script.py", line 33, in <module> sys.exit(load_entry_point('toutatis==1.26', 'console_scripts', 'toutatis')()) File "\AppData\Local\Programs\Python\Python39\lib\site-packages\toutatis-1.26-py3.9.egg\toutatis\core.py", line 92, in main File "\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 25-34: character maps to <undefined>

Traceback (most recent call last): File "\AppData\Local\Programs\Python\Python39\Scripts\toutatis-script.py", line 33, in <module> sys.exit(load_entry_point('toutatis==1.26', 'console_scripts', 'toutatis')()) File "\AppData\Local\Programs\Python\Python39\lib\site-packages\toutatis-1.26-py3.9.egg\toutatis\core.py", line 92, in main File "\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 43-44: character maps to <undefined>

After looking at the error text, and accounts, I think that your script don't manage emojis and cyrillic alphabet.

Can you fix it ?

Regards,