Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell fetch URL via browser

I want to do some screen-scraping (from Netflix) in Haskell but the site requires a cookie login state, so most of the examples of this use browser automation to ask a logged-in browser to do the actual URL fetch, and then scrape from that text.

A good example of what I want to (in Ruby) is at: https://gist.github.com/1425290

Is there any simple way to do the equivalent from Haskell?

like image 609
guthrie Avatar asked Oct 22 '22 17:10

guthrie


1 Answers

I know off the top of my head that the HTTP package's Network.Browser supports cookies, as does curl. Presumably http-conduit's Network.HTTP.Conduit.Browser is so-named because it, too, supports cookies, though I'm not 100% confident of that.

like image 199
Daniel Wagner Avatar answered Oct 31 '22 14:10

Daniel Wagner