The download package

[Tags: bsd3, library]

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 ""

Loading from a file:

 doc  <- openURI "file:///tmp/A.hs"

Loading a HTML page as a list of tags:

 tags <- openAsTags ""

Loading a HTML page as XML:

 tags <- openAsXML ""

Loading an RSS or Atom feed:

 feed <- openAsFeed ""

These data types can the be processed further with the XML, Feed and TagSoup libraries.


Versions0.1, 0.2, 0.3, 0.3.1,, 0.3.2
Change logNone available
Dependenciesbase (>=3 && <5), bytestring, feed, tagsoup (>=0.8), xml [details]
Copyright(c) 2008-2011, Don Stewart <>
AuthorDon Stewart
MaintainerDon Stewart <>
Home page
UploadedSat Jun 18 14:15:00 UTC 2011 by DonaldStewart
Downloads1456 total (30 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees