Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mkearney/googler

googler: Google from the R Console
https://github.com/mkearney/googler

google google-search googler r r-package rstats

Last synced: about 1 month ago
JSON representation

googler: Google from the R Console

Awesome Lists containing this project

README

        

---
output: github_document
---

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

# googler

[![Travis build status](https://travis-ci.org/mkearney/googler.svg?branch=master)](https://travis-ci.org/mkearney/googler)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/mkearney/googler?branch=master&svg=true)](https://ci.appveyor.com/project/mkearney/googler)

This is a wrapper around the ['googler' command line tool](https://github.com/jarun/googler).

## Requirements

Python 3 must be installed and locatable

## Installation

You can install the development version of {googler} from [Github](https://github.com/mkearney/googler) with:

``` r
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

```{r}
## search google for 'rstats'
googler("rstats")
```

### Example #2: Advanced google search

```{r}
## 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

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