sparkler.check: Check State

Description Usage Arguments Details Value Examples

View source: R/sparkler.R

Description

Print the state of crawl

Usage

1
sparkler.check(vm, pattern, crawlid, maxUrls)

Arguments

vm

The Instance object

pattern

The hostname.

crawlid

The Id of crawl.

maxUrls

The max URLs for fetching.

Details

Display progress bar Return TRUE When UNFECTCHED count becomes zero

Value

Boolean

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 

library(RsparkleR)
ovh <- import_ovh()
client <- load_client(ovh, endpoint, application_key, application_secret, consumer_key)

sshPubKeyPath  <- 'C:/Users/vterrasi/.ssh/id_rsa.pub'
sshPrivKeyPath <- 'C:/Users/vterrasi/.ssh/id_rsa'

vm <- sparkler.create(client, regionVM="UK1", typeVM="s1-4", sshPubKeyPath, sshPrivKeyPath)

url <- "https://www.YOUR WEBSITE.com"
pattern <- "www.YOUR WEBSITE.com"
topN <- 1000

crawlid <- sparkler.crawl(vm, url, topN, topGroups, maxIter, debug, mode="fast")

checkAll <- sparkler.check(vm, pattern, crawlid, topN)


## End(Not run)

voltek62/RsparkleR documentation built on May 19, 2019, 1:48 a.m.