Found in 1 comment on Hacker News
blcArmadillo · 2013-12-05 · Original thread
I haven't personally read this book but this might help you get started building something like you described: http://shop.oreilly.com/product/0636920021605.do.

Fresh book recommendations delivered straight to your inbox every Thursday.