getProxy {getProxy}R Documentation

Get ip and port by free proxy, start ans stop internet connection over free proxy server.

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

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

## 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)

[Package getProxy version 1.13 Index]