Linkparamsfilter {Rcrawler}R Documentation

Link parameters filter

Description

This function remove a given set of parameters from a specific URL

Usage

Linkparamsfilter(URL, params, removeAllparams = FALSE)

Arguments

URL

character, the URL from which params and values have to be removed

params

character vector, List of url parameters to be removed

removeAllparams

boolean if true , all url parameters will be removed.

Details

This function exclude given parameters from the urls,

Value

return a URL wihtout given parameters

Author(s)

salim khalil

Examples

#remove ord and tmp parameters from the URL
url<-"http://www.glogile.com/index.php?name=jake&age=23&tmp=2&ord=1"
url<-Linkparamsfilter(url,c("ord","tmp"))
#remove all URL parameters
Linkparamsfilter(url,removeAllparams = TRUE)


[Package Rcrawler version 0.1.9-1 Index]