gsr
    Preparing search index...

    Variable NewsResultConst

    NewsResult: ResultParser<NewsResultNode> = ...

    Parses results from the dedicated News tab in Google Search.

    To use this parser, set the tbm query parameter to 'nws' in the request configuration.

    NOTE: This parser is not compatible with the other parsers and vice versa.

    import { NewsResult, search } from 'google-sr';

    const results = await search({
    query: 'latest news on AI',
    parsers: [NewsResult],
    requestConfig: {
    queryParams: {
    tbm: 'nws', // Set tbm to nws for news results
    },
    },
    });

    The CheerioAPI instance

    Whether to exclude results with missing properties