About

Metadata

  • Last updated , by psibi
  • License BSD-3-Clause
  • Categories Network Development
  • Maintained by: Sibi Prabakaran <sibi@psibi.in>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 7.10.3

Readme

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.