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

[ library, public-domain, web ] [ Propose Tags ] [ Report a vulnerability ]

Modules

[Index]

Downloads

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

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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 2016-06-20T04:22:49Z
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 2016-06-17T10:36:23Z
Distributions NixOS:0.0.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1097 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-06-17 [all 1 reports]

Readme for haskell-proxy-list-0.0.1

[back to package description]

PROXY LIST

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.

Example:

import HTTP.ThirdParty.ProxyList

main = do
    proxyList <- getProxyList True
    proxyServer <- randomProxy proxyList
    print proxyServer