ywGetQueriesWeb: Get queries for specific host from Yandex Webmaster Web...

Description Usage Arguments Value Author(s) Examples

Description

ywGetQueriesWeb downloades queries for specific host from Yandex Webmaster Web version

Usage

1
queries <- ywGetQueriesWeb(headers = NULL, hostId = NULL)

Arguments

headers

Headers for requests to Yandex Webmaster Web version. It's a named array containing User-Agent and Cookie form browser.

hostId

Host ID from function ywGetAddedHostsWeb in form: protocol:domain:port. Example: http:prom.ua:80

Value

Returns data frame with all search queries of host.

Author(s)

Ivan Kutas

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Take User-Agent and Cookie from browser. I use postman app for google chrome for this.
User_Agent <-  'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'
Cookie <- 'yandexuid=1458919211469463782; _ym_isad=2'

headers <- c('User-Agent' = User_Agent, 'Cookie' = Cookie);

hosts <- ywGetAddedHostsWeb(headers)

hostId <- hosts$hostId[2];
 
queries <- ywGetQueriesWeb(headers, hostId)

kutasok/ryandexwebmasterv3 documentation built on May 20, 2019, 7:06 p.m.