The New York Times has a queryable Slack bot that can tell their editors what topics/stories are likely to be popular. The backend is a machine learning algorithm.
This is essentially a command line script, as you say. But having that functionality and being able to discuss the results amongst your fellow editors is very powerful.
http://www.niemanlab.org/2015/08/the-new-york-times-built-a-...