download: High-level file download based on URLs
High-level file download based on URLs
Download web content as strict bytestring, strings, HTML tags, XML, RSS or Atom feeds or JSON, via HTTP, FTP or file protocols, using a URL interface.
Importing the library:
import Network.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-0.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.2, 0.3, 0.3.1, 0.3.1.1, 0.3.2, 0.3.2.1, 0.3.2.2, 0.3.2.3, 0.3.2.4, 0.3.2.5, 0.3.2.6, 0.3.2.7 |
---|---|
Dependencies | base (>=3), bytestring, feed, tagsoup, 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> |
Category | Network |
Home page | http://code.haskell.org/~dons/code/download |
Uploaded | by DonaldStewart at 2008-07-01T20:59:45Z |
Distributions | LTSHaskell:0.3.2.7, NixOS:0.3.2.7 |
Reverse Dependencies | 3 direct, 0 indirect [details] |
Downloads | 11608 total (14 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |