This function allows you to query different search engines (DuckDuckGo, Bing, Yahoo News), retrieve search results, and filter them based on predefined patterns.
web_search(
search_term,
search_engine,
num_pages = 1,
time_filter = NULL,
insite = NULL,
intitle = FALSE
)
The search query as a string.
The search engine to use: "DuckDuckGo", "Bing", or "Yahoo News".
The number of result pages to retrieve (default: 1).
Optional time filter ("week", "month", "year").
Restrict search to a specific domain (not supported for Yahoo).
Search within the title (relevant for DuckDuckGo and Bing).
A `data.table` containing search engine results with columns `search_engine` and `raw_url`.