knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) options(width = 90) library(googler)
This is a wrapper around the 'googler' command line tool.
Python 3 must be installed and locatable
You can install the development version of {googler} from Github with:
remotes::install_github("mkearney/googler")
Search google with various options to specify things like the desired result count
, google news
, within a range of time
, from a given site
, etc.
## search google for 'rstats' googler("rstats")
## search google for 100 'rstats' or "R language" hits in English in past year googler("rstats OR \"R language\"", count = 100, time = "y1", lang = "en")
## search google news for rstats/R language articles in the past three weeks googler("rstats OR \"R language\"", news = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.