Created
May 5, 2015 13:04
-
-
Save nicolaferraro/37dc1b1e533f6b98f392 to your computer and use it in GitHub Desktop.
Jsoup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>net.databinder.dispatch</groupId> | |
<artifactId>dispatch-jsoup_2.10</artifactId> | |
<version>0.11.2</version> | |
</dependency> | |
def retrieveLinks(address: String) = | |
Jsoup. | |
connect(address) | |
.get | |
.select("a[href]") | |
.iterator.toList | |
.map(e => (address, e.attr("href"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment