download-curl-0.1.4: High-level file download based on URLs

The download-curl package

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.

Properties

Versions0.0, 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4
Dependenciesbase (≥3 & <6), bytestring, curl, feed, tagsoup (≥0.8 & <0.13), xml or
base (>3 & <4), curl, feed, tagsoup (≥0.8 & <0.13), 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-curl
Upload dateTue Mar 6 15:26:13 UTC 2012
Uploaded bySoenkeHahn
Built onghc-7.4
DistributionsNixOS: 0.1.4, Debian: 0.1.4

Modules

Downloads