hackageDB :: [Package]

Built with Cabal

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.

Versions0.1, 0.2, 0.3
Dependenciesbase (>3), feed, tagsoup, xml
LicenseBSD3
Copyright(c) 2008, Don Stewart <dons@galois.com>
AuthorDon Stewart
MaintainerDon Stewart <dons@galois.com>
CategoryNetwork
Home pagehttp://code.haskell.org/~dons/code/download
Upload dateTue Jul 1 20:59:45 UTC 2008
Uploaded byDonaldStewart
Built onghc-6.10, ghc-6.8

Modules

Downloads