equal
deleted
inserted
replaced
31 for (u <- get_all_URLs(get_page(url))) crawl(u, n - 1) |
31 for (u <- get_all_URLs(get_page(url))) crawl(u, n - 1) |
32 } |
32 } |
33 } |
33 } |
34 |
34 |
35 // starting URL for the crawler |
35 // starting URL for the crawler |
36 //val startURL = """http://www.inf.kcl.ac.uk/staff/urbanc""" |
36 val startURL = """http://www.inf.kcl.ac.uk/staff/urbanc""" |
37 val startURL = """http://www.inf.kcl.ac.uk/staff/urbanc/msc-projects-14.html""" |
37 |
38 |
38 |
39 // can now deal with depth 3 and beyond |
39 // can now deal with depth 3 and beyond |
40 crawl(startURL, 2) |
40 crawl(startURL, 2) |
41 |
41 |
42 |
42 |