Here you can find the source of getHtml(String url, String ruta_fich)
Parameter | Description |
---|---|
url | the url |
ruta_fich | the ruta_fich |
Parameter | Description |
---|---|
IOException | Signals that an I/O exception has occurred. |
public static Document getHtml(String url, String ruta_fich) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class Main { /**/*from ww w . j av a 2 s . c om*/ * Gets the html. * * @param url * the url * @param ruta_fich * the ruta_fich * @return the html * @throws IOException * Signals that an I/O exception has occurred. */ public static Document getHtml(String url, String ruta_fich) throws IOException { Document doc = Jsoup.connect(url).timeout(0).get(); return doc; } /** * Gets the html. * * @param url * the url * @return the html * @throws IOException * Signals that an I/O exception has occurred. */ public static Document getHtml(String url) throws IOException { Document doc = Jsoup.connect(url).timeout(0).get(); return doc; } }