The haskell-proxy-list package

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

[Skip to Readme]

Properties

Versions 0.0.1
Dependencies base (>=4.8 && <5), base64-string, bytestring, lens, random, regex-base, regex-posix, text, wreq [details]
License PublicDomain
Author grzegorzgoldapl
Maintainer contact@grzegorzgolda.com
Category Web
Home page https://github.com/grzegorzgoldapl/haskell-proxy-list
Source repository head: git clone git://github.com/grzegorzgoldapl/haskell-proxy-list.git
Uploaded Fri Jun 17 10:36:23 UTC 2016 by grzegorzgolda
Updated Mon Jun 20 04:22:49 UTC 2016 by grzegorzgolda to revision 1
Distributions NixOS:0.0.1
Downloads 105 total (13 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-06-17 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


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