Techno-Hwizrdry / checkpwnedemails

A command line tool to check if a single (or multiple) email addresses have been compromised.
MIT License
49 stars 25 forks source link

Unable to use -o option, Please help #5

Closed Mr-P-D closed 3 years ago

Mr-P-D commented 3 years ago

Command: python checkpwnedemails.py -a hibp-api-key.txt -s email -o tab-output.txt

Output: Traceback (most recent call last): File "checkpwnedemails.py", line 239, in main() File "checkpwnedemails.py", line 235, in main write_results_to_file(opts.output_path, results, opts) File "checkpwnedemails.py", line 185, in write_results_to_file outfile = open(filename + f, 'w', encoding='utf-8') TypeError: 'encoding' is an invalid keyword argument for this function

Can you please let me know what i am doing wrong ? i made the file with excel and added there

Mr-P-D commented 3 years ago

Apologies Author, i used python3 and then it worked

I Used: python3 checkpwnedemails.py -a hibp-api-key.txt -s email -o tab-output.txt

now i feel so stupid