4

I'm pretty sure Network Browser is the library I want to use, but I'm not sure how to use it. I'm a Haskell newbie. I've read Learn You A Haskell and 1/3rd of Real World Haskell.

I want to write a program that visits a website, logs in to it (which would require submitting a form and cookies), and then gives me the HTML of some pages.

I'd like to see some examples of how to do these things. The documentation only gives one example. Also, please teach a man to fish. If there some other place I should be looking to find examples (IMO the best way to learn how to use a library) I'd like to know. Reading the api documentation isn't cutting it.

Side note: This library named Shpider looks perfect, but I'm on windows and I can't figure out how to install and use curl which is one of the libraries it depends on.

Daniel Kaplan
  • 54,448
  • 39
  • 189
  • 282
  • http://stackoverflow.com/q/2710748/784338 To get cUrl – Daniel Gratzer Mar 15 '13 at 10:55
  • @jozefg: I was going to try that soon. I already tried it with http-wget by installing it on cygwin and now when I use wget commands they just hang in winghci. – Daniel Kaplan Mar 15 '13 at 16:48
  • 1
    I found curl didn't work well with the intranet I was crawling, because it uses a lot of state cookie and weird page updates, but selinium (which has a haskell binding somewhere) did. – AndrewC Mar 17 '13 at 08:27

0 Answers0