Linkparamsfilter: Link parameters filter

Description Usage Arguments Details Value Author(s) Examples

View source: R/Linkparamsfilter.R

Description

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

Usage

1
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

1
2
3
4
5
#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)

salimk/Rcrawler documentation built on May 25, 2020, 5:02 p.m.