summaryWebScrapingText {chatAI4R}R Documentation

Text Summary via Web Scraping

Description

Scrapes Google Search results for the provided query and summarizes the content.

Usage

summaryWebScrapingText(
  query = "LLM",
  t = "w",
  gl = "us",
  hl = "en",
  URL_num = 5,
  verbose = TRUE,
  translateJA = FALSE
)

Arguments

query

The search query. Default is "LLM".

t

Time period for search. 'w' for last week, 'm' for last month, 'y' for last year. Default is 'w'.

gl

Geographical location based on ISO 3166-1 alpha-2 country code. Default is 'us'.

hl

Language for search results based on ISO 639-1 language code. Default is 'en'.

URL_num

Number of URLs to scrape. Default is 5.

verbose

A boolean value indicating if details should be printed. Default is TRUE.

translateJA

A boolean value indicating if results should be translated to Japanese. Default is FALSE.

Details

Summarize Text via Web Scraping of Google Search

Scrape text information from Google Search and summarize it using LLM. Uses OpenAI API key for execution. Translation to Japanese requires a Deepl API key.

Value

Returns a list of summaries.

Author(s)

Satoshi Kume

Examples

## Not run: 
summaryWebScrapingText(query = "LLM", t = "w", gl = "us", hl = "en", URL_num = 5)

## End(Not run)

[Package chatAI4R version 0.2.10 Index]