Skip to content

AttributeError: GoogleResult instance has no attribute 'number_of_results' #55

@ckeenan34

Description

@ckeenan34

I received this error after doing the following 3 lines:
from google import google
search_results= google.search("something",1)
search_results[0].number_of_results
The last line is the problem. number_of_results seems to be the only problem because a similar line of:
search_results[0].name
gives me the correct result. I was looking in the code and noticed number_of_results gets initialized to None so at the very leased it should return None but instead its saying number_of_results doesn't exist.

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