@hackage download-curl0.1.4
High-level file download based on URLs
Categories
License
BSD-3-Clause
Maintainer
Don Stewart <dons@galois.com>
Links
- Homepage
- Documentation
- No source repository
- Security
Versions
Installation
Dependencies (6)
Dependents (20)
@hackage/shellmate, @hackage/GoogleSuggest, @hackage/scalpel, @hackage/codex, @hackage/gps2htmlReport, @hackage/GoogleTranslate, Show all…
Package Flags
small_base
(on by default)
Build with new smaller base 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.