View source: R/summaryWebScraping.R
summaryWebScrapingText | R Documentation |
Scrapes Google Search results for the provided query and summarizes the content.
summaryWebScrapingText(
query = "LLM",
t = "w",
gl = "us",
hl = "en",
URL_num = 5,
verbose = TRUE,
translateJA = FALSE
)
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. |
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.
Returns a list of summaries.
Satoshi Kume
## Not run:
summaryWebScrapingText(query = "LLM", t = "w", gl = "us", hl = "en", URL_num = 5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.