title: Cannot scrape price from website with Jsoup
body: <p>I'm having project in college which I need to build a software that tracks item prices based on URLs that the user should enter (currently only from Banggood.com).</p>
  <p>I have just started to learn about scraping info from websites so I've manage to do that and I stuck just in the beginning. I managed to <strong>scrape</strong> the item title but unsuccessfull to do that with the item price. I upload my current code.</p>
  <p>I could not managed get the right info from Jsoup site nor Google</p>
  <pre><code>import java.io.IOException;
  import java.util.Scanner;
  
  import org.jsoup.Jsoup;
  import org.jsoup.nodes.Document;
  import org.jsoup.select.Elements;
  
  public class ProjectLearning 
  {
      public static void main(String args[])
      {
          Scanner scan = new Scanner(System.in);
          
          print(&quot;Please enter your item URL: &quot;);
          String userUrl = scan.next();
          print(&quot;Give me a sec..&quot;);
          
          Document document;
          try {
              //Get Document object after parsing the html from given url.
              document = Jsoup.connect(userUrl).get();
  
              String title = document.title(); //Get title
              print(&quot;Item name: &quot; + title); //Print title.
              
              //Get price
              Elements price = document.select(&quot;div#item_now_price&quot;);
          
              for (int i=0; i &lt; price.size(); i++) 
              {
                  print(price.get(i).text());
              }
  
          } catch (IOException e) 
          {
              e.printStackTrace();
          }
          print(&quot;There you go&quot;);
      }
  
      public static void print(String string) {
          System.out.println(string);
      }
  }
  </code></pre>
  <p>Output:</p>
  <pre><code>Please enter your item URL: 
  https://www.banggood.com/3018-3-Axis-Mini-DIY-CNC-Router-Standard-Spindle-Motor-Wood-Engraving-Machine-Milling-Engraver-p-1274569.html?rmmds=flashdeals&amp;cur_warehouse=CN
  
  Give me a sec..
  
  Item name: 3018 3 axis mini diy cnc router standard spindle motor wood engraving machine milling engraver Sale - Banggood.com
  </code></pre>