-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.Rmd
70 lines (49 loc) · 1.96 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
options(width = 90)
library(googler)
```
# googler <img src='man/figures/logo.png' align="right" height="200" />
<!-- badges: start -->
[![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)
<!-- badges: end -->
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")
```
<!-- You can install the released version of googler from [CRAN](https://CRAN.R-project.org) with: -->
<!-- ``` r -->
<!-- install.packages("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)
```