Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- import org.jsoup.Jsoup;
- import org.jsoup.nodes.*;
- import org.jsoup.select.*;
- public class WebScrape{
- public static void main( String[] args ) throws IOException{
- Document doc = Jsoup.connect("http://www.student.is/afslaettir").get();
- String title = doc.title();
- System.out.println("title is: " + title);
- Elements test = doc.select("div.field-content");
- //String ttt = test.text();
- System.out.println(test);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement