Skip to content

a r package wraps httr package, provide multiple try and fake useragent with random proxy

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

ashther/ashr.rogue

Repository files navigation

ashr.rogue

Travis build status Coverage status lifecycle

The goal of ashr.rogue is to provide simple function which wraps httr package, function like GET will use random proxy and user agent with multiple try until got the right response.

Installation

You can install the released version of ashr.rogue with:

# install.packages('devtools')
devtools::install_github("ashther/ashr.rogue")

Example

# create a Rogue instance
rogue <- Rogue$new()
# or with proxy and user-agent, and record the proxy connection history
rogue <- Rogue$new(proxy = proxys, useragent = useragents, is_record = TRUE)
# select proxy not randomly, but consider the connection history, which means select better ones
rogue <- Rogue$new(proxy = proxys, useragent = useragents, is_record = TRUE, is_random = FALSE)

# add new proxy any time, and delete old ones
rogue$proxy_add(proxy_new, delete = TRUE)

# send query
rogue$get('http://httpbin.org/get')

# check the proxy connection history
rogue$proxy_show()

About

a r package wraps httr package, provide multiple try and fake useragent with random proxy

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages