haskell-proxy-list: Simple library for retrieving proxy servers info from https://proxy-list.org

[ library, public-domain, web ] [ Propose Tags ]

[Skip to Readme]
Versions 0.0.1
Dependencies base (>=4.8 && <5), base64-string, bytestring, lens, random, regex-base, regex-posix, text, wreq [details]
License LicenseRef-PublicDomain
Author grzegorzgoldapl
Maintainer contact@grzegorzgolda.com
Revised Revision 1 made by grzegorzgolda at Mon Jun 20 04:22:49 UTC 2016
Category Web
Home page https://github.com/grzegorzgoldapl/haskell-proxy-list
Source repo head: git clone git://github.com/grzegorzgoldapl/haskell-proxy-list.git
Uploaded by grzegorzgolda at Fri Jun 17 10:36:23 UTC 2016
Distributions NixOS:0.0.1
Downloads 366 total (7 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-06-17 [all 1 reports]
Hackage Matrix CI




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for haskell-proxy-list-0.0.1

[back to package description]


Very simple library for downloading a list of proxies from http://proxy-list.org


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