utiso/dorkbot

Keyerror: total result

Closed this issue · 2 comments

I just install the script and get theses error:

Traceback (most recent call last):
File "/usr/local/bin/dorkbot", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/dorkbot/dorkbot.py", line 73, in main
index(db, blacklist, load_module("indexers", args.indexer), args, indexer_options)
File "/usr/local/lib/python3.8/dist-packages/dorkbot/dorkbot.py", line 212, in index
urls = indexer.run(options)
File "/usr/local/lib/python3.8/dist-packages/dorkbot/indexers/google_api.py", line 17, in run
results = get_results(options)
File "/usr/local/lib/python3.8/dist-packages/dorkbot/indexers/google_api.py", line 34, in get_results
items = issue_request(data)
File "/usr/local/lib/python3.8/dist-packages/dorkbot/indexers/google_api.py", line 78, in issue_request
if int(request["totalResults"]) == 0:
KeyError: 'totalResults'

Sometingchange in the google API?

This error just means that your google dork has returned no results

jgor commented

Very late reply but wanted to confirm this has been addressed in the current version:

dorkbot -i google_api -o key=[redacted] -o engine=[redacted] -o query=asasdfjasdfnsdfnsdf
2025-01-07T17:12:52-0600 - INFO - Indexing: google_api
2025-01-07T17:12:53-0600 - INFO - Fetched 0 results