title: I'm trying to web scrape ebay using python and BeautifulSoup, but I'm getting a list index out of rangeerror
body: <p>As in the title, I'm trying to write a Ebay web-scrape program, yet when I try to find the price, it creates a list error, yet it works for getting the product name.</p>
  <p>The url is: <a href="https://www.ebay.com.au/sch/i.html?_from=R40&amp;_nkw=switch&amp;_sacat=0&amp;_pgn=1" rel="nofollow noreferrer">https://www.ebay.com.au/sch/i.html?_from=R40&amp;_nkw=switch&amp;_sacat=0&amp;_pgn=1</a></p>
  <pre><code>import bs4
  from urllib.request import urlopen as uReq
  from bs4 import BeautifulSoup as soup
  
  **Open Collection**
  
  uClient = uReq(my_url)
  page_html = uClient.read()
  uClient.close
  </code></pre>
  <p><strong>grabs each products</strong></p>
  <pre><code>containers = page_soup.findAll(&quot;div&quot;,  {&quot;class&quot; : &quot;s-item__wrapper clearfix&quot;})
  
  filename = &quot;EbayWebscraping.csv&quot;
  f = open(filename, &quot;w&quot;)
  
  headers = &quot;product_name, quality&quot;
  
  for container in containers:
  
      title_container = container.findAll('h3', {'class' : 's-item__title'} )
      product_name = title_container[0].text
  </code></pre>
  <p>#Where the problem is#</p>
  <pre><code>    price_container = container.findAll('span', {'class' : 's-item__price'})
      price = price_container[0].text
  
  
  
      print('Product: ' + product_name)
      print('Price: ' + price)
  </code></pre>