abacusai.web_search_result

Classes

WebSearchResult

A single search result.

Module Contents

class abacusai.web_search_result.WebSearchResult(client, title=None, url=None, snippet=None, news=None, place=None, entity=None, content=None)

Bases: abacusai.return_class.AbstractApiClass

A single search result.

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • title (str) – The title of the search result.

  • url (str) – The URL of the search result.

  • snippet (str) – The snippet of the search result.

  • news (str) – The news search result (if any)

  • place (str) – The place search result (if any)

  • entity (str) – The entity search result (if any)

  • content (str) – The page of content fetched from the url.

title
url
snippet
news
place
entity
content
deprecated_keys
__repr__()
to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict