Scala port of crawler4j