download: High-level file download based on URLs

[ bsd3, library, network ] [ Propose Tags ] [ Report a vulnerability ]

High-level file download based on URLs


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.2, 0.3, 0.3.1, 0.3.1.1, 0.3.2, 0.3.2.1, 0.3.2.2, 0.3.2.3, 0.3.2.4, 0.3.2.5, 0.3.2.6, 0.3.2.7
Change log ChangeLog.md
Dependencies base (>=3 && <5), bytestring, feed, tagsoup (>=0.8), xml [details]
Tested with ghc ==7.10.3
License BSD-3-Clause
Copyright (c) 2008-2011, Don Stewart <dons00@gmail.com>
Author Don Stewart
Maintainer Sibi Prabakaran <sibi@psibi.in>
Category Network
Home page https://github.com/psibi/download
Bug tracker https://github.com/psibi/download/issues
Source repo head: git clone https://github.com/psibi/download
Uploaded by psibi at 2019-03-02T07:45:53Z
Distributions NixOS:0.3.2.7, Stackage:0.3.2.7
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 11452 total (32 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-03-02 [all 1 reports]

Readme for download-0.3.2.7

[back to package description]

download

Build Status

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.

Using the library:

Importing the library:

import Network.Download

Loading a webpage as a ByteString:

doc  <- openURI "http://google.com"

Loading from a file:

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

Loading a HTML page as a list of tags:

tags <- openAsTags "http://google.com"

Loading a HTML page as XML:

tags <- openAsXML "http://google.com"

Loading an RSS or Atom feed:

feed <- openAsFeed "http://google.com"

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