In Haskell, how can I write an HTTP client to go through a website and submit forms?

I'm sure Network Browser is the library I want to use, but I'm not sure how to use it. I am new to Haskell. I read "Learn You A Haskell" and 1/3 of Real World Haskell.

I want to write a program that visits a website, logs into it (which will require sending a form and cookies), and then gives me the HTML code for some pages.

I would like to see some examples of how to do this. The documentation provides only one example. Also, please teach a person how to fish. If there is some other place that I have to look to find examples (IMO is the best way to find out how to use the library), I would like to know. Reading the api documentation does not cut it.

Side note: This library named Shpider looks great , but I am in the windows and I cannot figure out how to install and use curl, which is one of the libraries on which it depends.

+4
source share

Source: https://habr.com/ru/post/1469421/


All Articles