crawler2.scala
changeset 3 df423d3b7fa1
parent 1 b606c9439fa6
child 7 73cf4406b773
equal deleted inserted replaced
2:6e7da958ba8c 3:df423d3b7fa1
    37     for (u <- get_all_URLs(get_page(url))) crawl(u, n - 1)
    37     for (u <- get_all_URLs(get_page(url))) crawl(u, n - 1)
    38   }
    38   }
    39 }
    39 }
    40 
    40 
    41 // can now deal with depth 3
    41 // can now deal with depth 3
       
    42 // start on command line
    42 crawl(startURL, 3)
    43 crawl(startURL, 3)
    43 
    44