Scripting in Scala
Recently I needed to try out some ideas around web scraping. The app was a regular web scraper that downloads some pages, extracts data and saves them to disk. I wanted to just occasionally run it from shell to gather output, without too much thinking on how to launch it.
Where I want to get
As always there is a choice of technology to be made and immediately bash/python came to my mind, as most of the tools are already installed on the system. On the other hand I needed to run a quick proof of concept, that I could later turn into an application. I have decided to revisit then what can be used to write Scala like shell scripts.
First approach
First solution that I have seen already a while ago is described at https://alvinalexander.com/scala/scala-shell-script-example-exec-syntax. It ...