title: Web Scraping Contents In A List Wrapped Inside A Class With Python
body: <p>So I have a website with the following structure:</p>
  <p>Please see the image: <a href="https://i.stack.imgur.com/LZIzy.png" rel="nofollow noreferrer">https://i.stack.imgur.com/LZIzy.png</a></p>
  <p>Here's the link to the website: <a href="https://parramattamg.com.au/up4053-961230-mg-hs-2020.html" rel="nofollow noreferrer">https://parramattamg.com.au/up4053-961230-mg-hs-2020.html</a></p>
  <p>I am trying to extract all the items in the list.</p>
  <pre><code>import bs4, requests
  import pandas as PD
  
  wagon_stock_url = 'https://parramattamg.com.au/up4053-961230-mg-hs-2020.html'
  
  headers = {
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
  Gecko) Chrome/96.0.4664.45 Safari/537.36'
  }
  
  
  response = requests.get(wagon_stock_url, headers = headers)
  soup = bs4.BeautifulSoup(response.text, 'html.parser')  
  
  name = soup.select(&quot;.stockItemInfo&quot;).
  </code></pre>
  <p>I know soup. elect just prints the class items. Need help after that.</p>
  <p>Thanks for your help.</p>