Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 months 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-25T16:40:21.000Z (about 5 years ago)
- Last Synced: 2024-06-11T12:43:02.767Z (5 months ago)
- Topics: google, google-search, googler, r, r-package, rstats
- Language: R
- Size: 98.6 KB
- Stars: 14
- Watchers: 4
- 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
[![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)
```