getProxy: Get ip and port by free proxy, start ans stop internet...

Description Usage Arguments Details Author(s) References Examples

View source: R/getProxy.R

Description

Get IP and Port from one of service gimmeproxy.com or getproxylist.com, and return him in your R environment. Also this function can start and stop proxy seting in R.

Usage

1
2
3
getProxy( country = NULL, notCountry = NULL, 
    supportsHttps = TRUE, port = NULL, 
	type = "http", action = "start")

Arguments

country

Character, country code in ISO 3166-1 alpha-2, for more ditail go link

notCountry

Character, country code in ISO 3166-1 alpha-2, for more ditail go - link

supportsHttps

Logical, TRUE of FALSE supports HTTPS requests

port

Character, Port available on

type

Character, Proxy protocol, one of "http", "socks4", "socks5"

action

Character, wath do with proxy, one of "get" for get IP and PORT, "start" for get IP and PORT and start proxy settings, "stop" for stop proxy settings

Details

You can use getProxy when you needed get data from blocked on you country internet source.

Author(s)

Alexey Seleznev

References

Package use three services gimmeproxy, proxy-list.download and getproxylist.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
#For get IP and PORT in R object
prox_ip_and_port <- getProxy(port = "3128", 
							 country = "RU", 
							 action = "get")

#For get and start proxy settings 
prox_ip_and_port <- getProxy(port = "3128", 
							 country = "RU", 
							 action = "start")

#For stop proxy
getProxy(action = "stop")

## End(Not run)

selesnow/getProxy documentation built on Jan. 8, 2022, 3:35 p.m.