I am trying to retrieve the SIC Code from the following URL: . However, when I run my code, I encounter the following error:
public static void main(String[] args) {
try {
Document doc = Jsoup.connect("http://www.manta.com/c/mx4s4sw/bowflex-academy").ignoreHttpErrors(true).get();
String textContents = doc.select("itemprop").first().text();
} catch (IOException e) {
e.printStackTrace();
}
}
}
Exception in thread "main" java.lang.NullPointerException
at com.inndata.connection.GoogleScraperDemo.main(GoogleScraperDemo.java:22)