download-curl: High-level file download based on URLs
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.
| Versions | 0.0, 0.1, 0.1.1 |
|---|---|
| Dependencies | base (>3), curl, feed, tagsoup, xml |
| 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-curl |
| Upload date | Thu Sep 11 21:35:14 UTC 2008 |
| Uploaded by | DonaldStewart |
| Built on | ghc-6.10, ghc-6.8 |
Modules
Downloads
- download-curl-0.1.1.tar.gz (Cabal source package)
- package description (included in the package)
