Title: json.decoder.JSONDecodeError during JSON output generation
Environment:
- user-scanner Version: 1.3.5.3
- OS: Kali Linux
- Python Version: 3.13
- Command:
user-scanner -e dev_tester_99@gmail.com --no-nsfw -f json -o out.json --allow-loud --only-found
Steps to Reproduce:
- Run a scan with the
-f json flag using an email that returns multiple results.
- The scanner completes the "Social Sites" checks.
- The script crashes before finalizing the output file.
Terminal Traceback:
Traceback (most recent call last):
File "/usr/local/bin/user-scanner", line 6, in <module>
sys.exit(main())
~~~~^^
File "/home/kali/user_scanner/main.py", line 397, in main
new_items = json.loads(content)
File "/usr/lib/python3.13/json/__init__.py", line 352, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/usr/lib/python3.13/json/decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/json/decoder.py", line 361, in raw_decode
obj, end = self.scan_once(s, idx)
~~~~~~~~~~~~~~^^^^^^^^
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 396 column 32 (char 8858)
Expected Behavior:
The script should successfully parse the gathered data into a valid JSON object and write it to the specified output file.
Actual Behavior:
The script fails to parse the content string, indicating malformed JSON structure (missing comma delimiter) at the point of merging results.
Title:
json.decoder.JSONDecodeErrorduring JSON output generationEnvironment:
user-scanner -e dev_tester_99@gmail.com --no-nsfw -f json -o out.json --allow-loud --only-foundSteps to Reproduce:
-f jsonflag using an email that returns multiple results.Terminal Traceback:
Expected Behavior:
The script should successfully parse the gathered data into a valid JSON object and write it to the specified output file.
Actual Behavior:
The script fails to parse the
contentstring, indicating malformed JSON structure (missing comma delimiter) at the point of merging results.