Description Usage Arguments Value Examples
Get Google search rank positions of specific url's.
1 2 3 | getGoogleRanking(search.words, target.url = NULL, n.pages = 5,
log.pages = NULL, n.entries = 1, result.type = "organic",
all.results = FALSE)
|
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 |
n.pages |
Integer value with number of search results pages to look at. It should be set between 1 and
30. Default |
log.pages |
Character value with path to save search results pages. If NULL, they're not saved.
Default |
n.entries |
Numeric, positive. If target.url is not NULL, how many entries of target-urls must be saved.
Default |
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 |
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 |
A data.frame with founded url, page number, position and, if it should look for target urls, target-url.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.