Skip to content

Email lookup failing / Possible Google change #591

@radiophonic

Description

@radiophonic

Describe the bug
GHunt now fails looking up email address details, this issue only recently started. Presumably a change on Google's end is causing the failure.

To Reproduce
Steps to reproduce the behavior:

  1. ghunt email email@gamail
  2. See error

System (please complete the following information):

  • GHunt 2.3.4 Spider Edition
  • Python version 3.12.3
  • Ubuntu 24.4.4

Error output:

Traceback (most recent call last):
  File "/home/user/.local/share/pipx/venvs/ghunt/bin/./ghunt", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/user/.local/share/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/ghunt.py", line 18, in main
    parse_and_run()
  File "/home/user/.local/share/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/cli.py", line 63, in parse_and_run
    process_args(args)
  File "/home/user/.local/share/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/cli.py", line 73, in process_args
    asyncio.run(email.hunt(None, args.email_address, args.json))
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/user/.local/share/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/modules/email.py", line 25, in hunt
    is_found, target = await people_pa.people_lookup(as_client, email_address, params_template="max_details")
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/share/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/apis/peoplepa.py", line 121, in people_lookup
    await person._scrape(as_client, person_data)
  File "/home/user/.local/share/pipx/venvs/ghunt/lib/python3.12/site-packages/ghunt/parsers/people.py", line 164, in _scrape
    self.coverPhotos[cover_photo_data["metadata"]["container"]] = person_cover_photo
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'container'

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