download-curl: High-level file download based on URLs
High-level file download based on URLs
Download web content as strict or lazy bytestringrs, strings, HTML tags, XML, RSS or Atom feeds or JSON, using the curl network library.
Importing the library:
import Network.Curl.Download
Loading a webpage as a ByteString:
doc <- openURI "http://haskell.org"
Loading from a file:
doc <- openURI "file:///tmp/A.hs"
Loading a HTML page as a list of tags:
tags <- openAsTags "http://haskell.org"
Loading a HTML page as XML:
tags <- openAsXML "http://haskell.org"
Loading an RSS or Atom feed:
feed <- openAsFeed "http://haskell.org"
These data types can the be processed further with the XML, Feed and TagSoup libraries.
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
small_base | Build with new smaller base library | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- download-curl-0.1.4.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
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
Candidates
- No Candidates
Versions [RSS] | 0.0, 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4 |
---|---|
Dependencies | base (>=3 && <6), bytestring, curl, feed, tagsoup (>=0.8 && <0.15), xml [details] |
Tested with | ghc ==6.8.2 |
License | BSD-3-Clause |
Copyright | (c) 2008, Don Stewart <dons@galois.com> |
Author | Don Stewart |
Maintainer | Don Stewart <dons@galois.com> |
Revised | Revision 2 made by AdamBergmark at 2016-11-03T17:43:58Z |
Category | Network |
Home page | http://code.haskell.org/~dons/code/download-curl |
Uploaded | by SoenkeHahn at 2012-03-06T15:26:13Z |
Distributions | LTSHaskell:0.1.4, NixOS:0.1.4 |
Reverse Dependencies | 12 direct, 15 indirect [details] |
Downloads | 8274 total (21 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |