Skip to content

Instantly share code, notes, and snippets.

@nicolaferraro
Created May 5, 2015 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolaferraro/37dc1b1e533f6b98f392 to your computer and use it in GitHub Desktop.
Save nicolaferraro/37dc1b1e533f6b98f392 to your computer and use it in GitHub Desktop.
Jsoup
<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