The shpider package
Shpider is a web automation library for Haskell. It allows you to quickly write crawlers, and for simple cases ( like following links ) even without reading the page source.
It has useful features such as turning relative links from a page into absolute links, options to authorize transactions only on a given domain, and the option to only download html documents.
It also provides a nice syntax for filling out forms.
An example:
runShpider $ do
download "http://apage.com"
theForm : _ <- getFormsByAction "http://anotherpage.com"
sendForm $ fillOutForm theForm $ pairs $ do
"occupation" =: "unemployed Haskell programmer"
"location" =: "mother's house"
Properties
| Versions | 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.1.0, 0.1.1, 0.2, 0.2.1.1 |
|---|---|
| Dependencies | base (<5), bytestring, containers, curl, mtl, regex-posix, tagsoup, tagsoup-parsec (≥0.0.8), time, url (≥2), web-encodings |
| License | BSD3 |
| Author | Johnny Morrice <spoon@killersmurf.com>, Ozgun Ataman |
| Maintainer | Ozgun Ataman <ozataman@gmail.com> |
| Category | Web |
| Home page | http://github.com/ozataman/shpider |
| Upload date | Tue Nov 29 18:26:57 UTC 2011 |
| Uploaded by | OzgunAtaman |
| Built on | ghc-7.2 |
Modules
Downloads
- shpider-0.2.1.1.tar.gz (Cabal source package)
- package description (included in the package)