peasant
peasant copied to clipboard
Error Writing Output with Unicode Characters
There is an error being produced when writing unicode characters to CSV.
Command: python3 peasant.py h -c E:\Downloads\cookiebro-cookies.json --disable-logout -cns redacted -of redacted.csv
Output:
[+] Starting new CSV file: redacted.csv
[+] Authenticating session
[+] Company Identifier for redacted: 339176
[+] Getting initial profiles
[+] Available profiles: 156
[+] Extracting remaining profiles (this will take some time)
[+] Done! Total known profiles: 117
[+] Writing output to redacted.csv
Traceback (most recent call last):
File "peasant.py", line 85, in
I discovered that changing line 106 in \Peasant\generic.py to the below will resolve the issue: csvfile = open(output_file,'w', encoding="utf-8")