Wrapper around SerpAPI.
To use, you should have the google-search-results python package installed,
and the environment variable SERPAPI_API_KEY set with your API key, or pass
serpapi_api_key as a named parameter to the constructor.
SerpAPIWrapper()Example:
from langchain_community.utilities import SerpAPIWrapper
serpapi = SerpAPIWrapper()Validate that api key and python package exists in environment.
Run query through SerpAPI and parse result async.
Run query through SerpAPI and parse result.
Run query through SerpAPI and return the raw result.
Use aiohttp to run query through SerpAPI and return the results async.
Get parameters for SerpAPI.