The download package

[ Tags: bsd3, library, network ] [ Propose Tags ]

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.

Properties

Versions 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
Dependencies base (>=3 && <5), bytestring, feed, tagsoup (==0.8.*), xml [details]
License BSD3
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 Tue Jan 25 21:28:51 UTC 2011 by MagnusTherning
Distributions LTSHaskell:0.3.2.6, NixOS:0.3.2.6, Stackage:0.3.2.6
Downloads 2813 total (145 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-28 [all 6 reports]
Hackage Matrix CI

Modules

  • Network
    • Network.Download

Flags

NameDescriptionDefaultType
small_base

Build with new smaller base library

EnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees