Simple library for retrieving proxy servers info from https://proxy-list.org https://github.com/grzegorzgoldapl/haskell-proxy-list
|Latest on Hackage:||0.0.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Very simple library for downloading a list of proxies from http://proxy-list.org
HOW TO USE
Library exports two functions. Proxy is represented by a tuple (Host, Port).
getProxyList :: Bool -> IO [(String, Int)] getProxyList ssl Argument indicates if requested proxy servers should have HTTPS support. Returns a list of proxy servers. randomProxy :: [(String, Int)] -> (String, Int) randomProxy proxyList Selects random proxy.
import HTTP.ThirdParty.ProxyList main = do proxyList <- getProxyList True proxyServer <- randomProxy proxyList print proxyServer