knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
options(width = 90)
library(googler)

googler

Travis build status Lifecycle: experimental AppVeyor build status

This is a wrapper around the 'googler' command line tool.

Requirements

Python 3 must be installed and locatable

Installation

You can install the development version of {googler} from Github with:

remotes::install_github("mkearney/googler")

Examples

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.

Example #1: Basic google search

## search google for 'rstats'
googler("rstats")

Example #2: Advanced google search

## 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")

Example #3: Search google news

## search google news for rstats/R language articles in the past three weeks
googler("rstats OR \"R language\"", news = TRUE)


mkearney/googler documentation built on Nov. 4, 2019, 6:59 p.m.