Created
November 4, 2013 01:00
-
-
Save marti1125/7296629 to your computer and use it in GitHub Desktop.
scrap with java
This file contains hidden or 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
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