4 ms·
What about html parsing/posting, api creation/consumption, and screen scraping? It's what I've used Haskell for the most and would be happy to make some introdu
by codygman 12y ago
What about html parsing/posting, api creation/consumption, and screen scraping? It's what I've used Haskell for the most and would be happy to make some introductory tutorials.
- Bootvis 12y agoI believe those could be very valuable. It's practical and doesn't have to be too complex and touches a number interesting topics.
- djur 12y agoYes, please. There's a dearth of this kind of material.
- codygman 12y agoAlright, I'll respond to you here again when I've wrote something.
- codygman 12y agoI didn't write it, but I came across something that might be of interest to you: http://pbrisbin.com/posts/writing_json_apis_with_yesod/ http://pbrisbin.com/posts/writing_json_apis_with_yesod/
- Bootvis 12y agoWow, thanks for the follow-up! I will have to check it out later. Thanks again.
- arthurjj 12y agoBeing more familiar with screen scraping than has haskell I'm surprised you chose it for that task. What made you choose it?
- codygman 12y agoMostly for the advantages of purity and the trend of Haskell code I writing just being correct the first time. Also, with the help of dom-selector[0] it is very concise. I'm also using wreq[1] recently which has a great intro tutorial and is very concise with the help of lenses[2]. Mind you, I only use the most basic lenses but that has been enough for me so far. I look forward to trying taggy-lens[3] in the future which is a more lens based approach of parsing html. Though it's hard to imagine anything being more concise than the dom-selector approach. To go back to your question again though, Haskell has enabled me to write mostly bug-free code quickly and there was more than enough library support for screen scraping. The biggest problem was trying to pick the tools/libraries to use for my task. 0: http://hackage.haskell.org/package/dom-selector http://hackage.haskell.org/package/dom-selector 1: http://www.serpentine.com/wreq/tutorial.html http://www.serpentine.com/wreq/tutorial.html 2: https://hackage.haskell.org/package/lens https://hackage.haskell.org/package/lens 3: http://hackage.haskell.org/package/taggy-lens http://hackage.haskell.org/package/taggy-lens