Part of lp.services.sitesearch View In Hierarchy
Method | subscription_key | The subscription key issued by Bing Custom Search. |
Method | custom_config_id | The custom search instance as configured in Bing Custom Search. |
Method | site | The URL to the Bing Custom Search service. |
Method | search | See ISearchService . |
Method | create_search_url | Return a Bing Custom Search search url. |
Method | create_search_headers | Return a dict with Bing Custom Search compatible request headers. |
Method | _checkParameter | Check that a parameter value is not None or an empty string. |
Method | _parse_search_response | Return a PageMatches object. |
The URL is probably https://api.cognitive.microsoft.com/bingcustomsearch/v7.0/search.
ISearchService
.
The subscription_key
and custom_config_id
are used in the
search request. Search returns 20 or fewer results for each query.
For terms that match more than 20 results, the start param can be
used over multiple queries to get successive sets of results.
Returns | ISearchResults (PageMatches). | |
Raises | SiteSearchResponseError if the json response is incomplete or
cannot be parsed. |
PageMatches
object.Parameters | bing_json | A string containing Bing Custom Search API v7 JSON. |
Returns | ISearchResults (PageMatches). | |
Raises | SiteSearchResponseError if the json response is incomplete or
cannot be parsed. |