Scala domain-specific language for web crawling and functional testing