getGoogleRanking: Get Google search rank positions of specific url's.

Description Usage Arguments Value Examples

Description

Get Google search rank positions of specific url's.

Usage

1
2
3
getGoogleRanking(search.words, target.url = NULL, n.pages = 5,
  log.pages = NULL, n.entries = 1, result.type = "organic",
  all.results = FALSE)

Arguments

search.words

Character value with words to be used on searching. Mandatory.

target.url

Character vector with target domains to look for. If NULL, it'll return all entries. Otherwise, it should be a character vector with length between 1 and 30. Deafult NULL.

n.pages

Integer value with number of search results pages to look at. It should be set between 1 and 30. Default 5.

log.pages

Character value with path to save search results pages. If NULL, they're not saved. Default NULL.

n.entries

Numeric, positive. If target.url is not NULL, how many entries of target-urls must be saved. Default 1.

result.type

Character value with which searching result type should be read, only organic ('organic' or 'o'), only cpc ('cpc' or 'c') or both ('both' or 'b'). Default organic.

all.results

Logical value to be used with target.url. If FALSE, it'll resturn only info about target urls. Otherwise, return all results. Default FALSE.

Value

A data.frame with founded url, page number, position and, if it should look for target urls, target-url.

Examples

1
2
3
4
5
6
## Not run: 
getGoogleRanking( search.words = "r project", target.url = c("berkeley.edu", "r-project.org" ) )
getGoogleRanking( search.words = "r project", n.pages = 5, target.url = c("berkeley.edu", "r-project.org" ), result.type = "c" )
getGoogleRanking( search.words = "r project", n.pages = 3, all.results = TRUE )

## End(Not run)

karina-rebuli/ggrank documentation built on May 23, 2019, 6:05 a.m.