title: Java HTML Parsing
body: <p>I'm working on an app which scrapes data from a website and I was wondering how I should go about getting the data.  Specifically I need data contained in a number of div tags which use a specific CSS class - Currently (for testing purposes) I'm just checking for </p>
  
  <pre><code>div class = "classname"
  </code></pre>
  
  <p>in each line of HTML - This works, but I can't help but feel there is a better solution out there.  </p>
  
  <p>Is there any nice way where I could give a class a line of HTML and have some nice methods like:</p>
  
  <pre><code>boolean usesClass(String CSSClassname);
  String getText();
  String getLink();
  </code></pre>