To use this selector, set the tbm query parameter to 'nws' in the request configuration.
This enables results from the dedicated News tab, which is incompatible with other selectors (e.g., OrganicSearchSelector).
Example
import { NewsResult, search } from'google-sr';
constresults = awaitsearch({ query:'latest news', resultTypes: [NewsResult], requestConfig: { queryParams: { tbm:'nws', // Set tbm to nws for news results }, }, });
Parses results from the Google News tab.
To use this selector, set the
tbm
query parameter to'nws'
in the request configuration. This enables results from the dedicated News tab, which is incompatible with other selectors (e.g., OrganicSearchSelector).