Skip to content

Export CSV: segmentation fault #231

@anotherhadi

Description

@anotherhadi

Describe the bug
Cannot export to CSV

To Reproduce
holehe "[email protected]" works fine, holehe --csv "[email protected]" produce a seg fault.

Error log:

...
[x] voxmedia.com
[x] vrbo.com
[x] vsco.co
[-] wattpad.com
[-] wordpress.com
[x] xing.com
[-] xnxx.com
[-] xvideos.com
[-] yahoo.com
[-] zoho.com

[+] Email used, [-] Email not used, [x] Rate limit, [!] Error
121 websites checked in 10.32 seconds
Twitter : @palenath
Github : https://github.com/megadose/holehe
For BTC Donations : 1FHDM49QfZX6pJmhjLE5tB2K6CaTLMZpXZ
Traceback (most recent call last):
  File "/nix/store/2d6940bgaj2n8fqra54r6lbld3g2g73i-holehe-0-unstable-2023-05-18/bin/.holehe-wrapped", line 9, in <module>
    sys.exit(main())
             ~~~~^^
  File "/nix/store/2d6940bgaj2n8fqra54r6lbld3g2g73i-holehe-0-unstable-2023-05-18/lib/python3.13/site-packages/holehe/core.py", line 233, in main
    trio.run(maincore)
    ~~~~~~~~^^^^^^^^^^
  File "/nix/store/2z4a5g0xfrbxsbr1p8s1d3vnnc2pbzfk-python3.13-trio-0.30.0/lib/python3.13/site-packages/trio/_core/_run.py", line 2435, in run
    raise runner.main_task_outcome.error
  File "/nix/store/2d6940bgaj2n8fqra54r6lbld3g2g73i-holehe-0-unstable-2023-05-18/lib/python3.13/site-packages/holehe/core.py", line 230, in maincore
    export_csv(out,args,email)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/nix/store/2d6940bgaj2n8fqra54r6lbld3g2g73i-holehe-0-unstable-2023-05-18/lib/python3.13/site-packages/holehe/core.py", line 163, in export_csv
    fc.writerows(data)
    ~~~~~~~~~~~~^^^^^^
  File "/nix/store/829wb290i87wngxlh404klwxql5v18p4-python3-3.13.7/lib/python3.13/csv.py", line 229, in writerows
    return self.writer.writerows(map(self._dict_to_list, rowdicts))
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/829wb290i87wngxlh404klwxql5v18p4-python3-3.13.7/lib/python3.13/csv.py", line 221, in _dict_to_list
    raise ValueError("dict contains fields not in fieldnames: "
                     + ", ".join([repr(x) for x in wrong_fields]))
ValueError: dict contains fields not in fieldnames: 'error'
zsh: segmentation fault (core dumped)  holehe --csv "[email protected]"

Desktop (please complete the following information):

  • OS: NixOS
  • Version v1.61

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions