News headlines summary bash one liner
I thought I would start sharing some of the ways I'm using AI to help me do the boring stuff. This is a simple bash one-liner that uses Ollama to run mistral-nemo locally on my computer to give me a summary of all the day's news headlines from The Guardian Australia.
You need to have the links browser installed to run this. It can be installed easily on a mac with Homebrew
bash
brew install links
Once you have links installed it's easy to run:
bash
ollama run mistral-nemo echo "Summerize the news headlines: `links -codepage utf-8 -force-html -width 500 -dump https://www.theguardian.com/australia-news/all`"
As with all large language model stuff - your milage will vary. Nemo sometimes comes up with some variety of a headline summary but more often than not I get exactly what I need.