Last active
August 16, 2017 20:09
-
-
Save erasmas/3c899b732b72ce6063e3add812f3e950 to your computer and use it in GitHub Desktop.
Simple script to play with Ammonite-REPL
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
#!/usr/bin/env amm | |
import $ivy.`org.jsoup:jsoup:1.7.2` | |
import org.jsoup._ | |
val doc = Jsoup.connect("http://manning.com").get() | |
val text = doc.select("#dotd-link-non-mobile > em:nth-child(1)").text | |
println(text) | |
println("http://manning.com/dotd") | |
// $ manning-dotd | |
// Get Half off Nim in Action - use code dotd081617au | |
// http://manning.com/dotd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment