Código
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import org.jsoup.Jsoup; import java.io.IOException; public class Read { public static void main(String[] args) throws IOException { String webPage = "https://www.jesusninoc.com"; String html = Jsoup.connect(webPage).get().html(); System.out.println(html); } } |
Comandos para compilar con javac y ejecutar con java llamando a jsoup.jar
1 2 |
javac -cp jsoup-1.14.3.jar Read.java java -cp .:jsoup-1.14.3.jar Read |