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: 3 days ago
JSON representation
googler: Google from the R Console
- Host: GitHub
- URL: https://github.com/mkearney/googler
- Owner: mkearney
- License: other
- Created: 2019-08-29T14:55:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-25T16:40:21.000Z (over 5 years ago)
- Last Synced: 2025-04-09T22:17:27.462Z (6 days ago)
- Topics: google, google-search, googler, r, r-package, rstats
- Language: R
- Size: 98.6 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - mkearney/googler - googler: Google from the R Console (R)
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
[](https://travis-ci.org/mkearney/googler)
[](https://www.tidyverse.org/lifecycle/#experimental)
[](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)
```