title: Python Scraping from website
body: <p>I've tried to write a web scraper for <a href="https://www.waug.com/area/?idx=15" rel="nofollow noreferrer">https://www.waug.com/area/?idx=15</a>:</p>
  
  <pre><code>#!/usr/bin/env python3
  #_*_coding:utf8_*_
  
  import requests
  from bs4 import BeautifulSoup
  
  url = requests.get('https://www.abcd.com/area/?abc=15')
  
  html = url.text
  
  soup = BeautifulSoup(html, 'html.parser')
  
  count = 1
  
  names = soup.select('#good_{} &gt; div &gt; div.class_name &gt; div &gt; div'.format(count))
  prices = soup.select('#good_{} &gt; div &gt; div.class_name &gt; div.class_name'.format(count))
  
  for name in names:
      while count &lt; 45:
          print(name.text)
          count = count + 1
  
  for price in prices:
      while count &lt; 45:
          print(price.text)
          count = count + 1
  </code></pre>
  
  <p>The output is only 45 times first item name and no price. How can I get all item name and price? I want to get item name and price on same line. (I've changed the url and some of the class names just in case)</p>