Skip to content

Instantly share code, notes, and snippets.

@marti1125
Created November 4, 2013 01:00
Show Gist options
  • Save marti1125/7296629 to your computer and use it in GitHub Desktop.
Save marti1125/7296629 to your computer and use it in GitHub Desktop.
scrap with java
package scrapweb;
import java.io.IOException;
import org.jsoup.*;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
/**
*
* @author Willy
*/
public class ScrapWeb {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
Document doc = Jsoup.connect("http://www.lap.com.pe/lap_portal/vuelos.asp?vuelo=N&accion=S").get();
Elements newsHeadlines = doc.select("table[width=793]");
System.out.println(newsHeadlines);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment