The download-curl package

[Tags:bsd3, library]

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

Versions 0.0, 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4
Dependencies base (>=3 && <6), bytestring, curl, feed, tagsoup (>=0.8 && <0.14), xml [details]
License BSD3
Copyright (c) 2008, Don Stewart <dons@galois.com>
Author Don Stewart
Maintainer Don Stewart <dons@galois.com>
Stability Unknown
Category Network
Home page http://code.haskell.org/~dons/code/download-curl
Uploaded Tue Mar 6 15:26:13 UTC 2012 by SoenkeHahn
Updated Mon Oct 12 19:03:50 UTC 2015 by AdamBergmark to revision 1
Distributions Debian:0.1.4, NixOS:0.1.4
Downloads 2940 total (23 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefaultType
small_baseBuild with new smaller base libraryEnabledAutomatic

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