GHunt icon indicating copy to clipboard operation
GHunt copied to clipboard

is 'ghunt.py doc' not working anymore?

Open Donaid opened this issue 2 years ago • 3 comments

Describe the bug Everything is working except the document function. The email function working well, but the doc part gives an error. I tried with several google document links, but the results are all the same.

Traceback (most recent call last): File "ghunt.py", line 40, in doc_hunt(data) File "C:\Users\k\ghunt\modules\doc.py", line 78, in doc_hunt created_date = datetime.strptime(data["createdDate"], '%Y-%m-%dT%H:%M:%S.%fz') KeyError: 'createdDate'

Screenshots

Screenshot_9 download

Donaid avatar Aug 04 '22 22:08 Donaid

Any luck solving this? i have the same error.

00-Python avatar Aug 13 '22 17:08 00-Python

same error here as well.

hugobiais avatar Aug 19 '22 08:08 hugobiais

This is the real error if you inspect the response (at least in my case, I used GHunt companion in server mode to generate the token):

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "required",
        "message": "Authentication token must be issued to a non-anonymous app.",
        "locationType": "header",
        "location": "authorization"
      }
    ],
    "code": 400,
    "message": "Authentication token must be issued to a non-anonymous app."
  }
}

dbechrd avatar Sep 01 '22 23:09 dbechrd

It's not a clean solution but if you follow along with this you can generate a new api key linked to a google cloud project, once you've got that you've just got to add google drive service to that project and it should work.

Huderon avatar Oct 01 '22 06:10 Huderon

Same error here, didnt understand how to use a google project on ghunt

haroldKryptus avatar Oct 14 '22 14:10 haroldKryptus

Same error here, didnt understand how to use a google project on ghunt

Once you've got the API key for the project go to the data file in ./resources and replace the "internal" key with the new API key

Huderon avatar Oct 14 '22 23:10 Huderon