title: How to webscrape information with java
body: <p>I've been trying to do a lot of research with webscraping. I'm trying to load the stats of different characters of the game I play into my program, and as there are over 150 of them I can't manually type them all in. Here is one of the pages that I'm trying to scrape information <a href="http://leagueoflegends.wikia.com/wiki/Kassadin" rel="nofollow">from this site</a></p>
  
  <p>I'm trying to get these variables:
  HEALTH, ATTACK DAMAGE, HEALTH REGEN.,ATTACK SPEED, MANA,ARMOR,RANGE,MOV. SPEED</p>
  
  <p>So far what I've gotten is below with the JSoup library which prints the website in a single line of text, and I'm not sure how to extract the variables from that variable.</p>
  
  <pre><code>package WebScraper;
  
  import java.io.IOException;
  
  import org.jsoup.Jsoup;
  import org.jsoup.nodes.Document;
  
  public class getWikiStats {
          public void getChampStats(){
                  try {
                          Document doc = Jsoup.connect("http://leagueoflegends.wikia.com/wiki/Kassadin").get();
                          String website = doc.text();
                          System.out.println(website);
                  } catch (IOException e) {
                          e.printStackTrace();
                  }
          }
  }
  </code></pre>
  
  <p>Is there a better way to do this? Or is there a way to get the variables from that line of text?</p>