Skip to content

totalEstimatedMatches Key Error #2

@closeatlast

Description

@closeatlast

(base) caleb@air ~ % python search_bing_api.py --query "charmander" --output dataset/charmander
[INFO] Searching for... charmander
Traceback (most recent call last):
File "/Users/caleb/search_bing_api.py", line 45, in
estNumResults = min(results['totalEstimatedMatches'], MAX_RESULTS)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'totalEstimatedMatches'
(base) caleb@air ~ %
Get a key error from totalEstimatedMatches whenever I run please help

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