title: Python bs4 - Can't scrape more then 4 pages on eBay
body: <p>I have a script to scrape products from eBay and other sites and this works for the first 4 pages but when I get past the 5th I can't find anything (yes the item I'm looking for has more then 5 pages)</p>
  <p>I've tried the solution done <strong><a href="https://stackoverflow.com/questions/63983368/why-can-i-only-scrape-first-4-pages-of-results-on-ebay">here</a></strong> but it doesn't work, if I add the timeout I get <code>ReadTimeout: HTTPSConnectionPool(host='', port=443): Read timed out. (read timeout=2)</code> and if I don't add the timeout the request just goes into a loop</p>
  <p><strong>ex:</strong> <code>search_term = 'gtx+1050ti'</code></p>
  <pre><code>page_num = 1
  while True:
      headers = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36'}
      page = requests.get(f'https://www.ebay.com/sch/i.html?_nkw={search_term}&amp;_fcid=164&amp;_sop=15&amp;_pgn={page_num}', headers=headers)
      soup = BeautifulSoup(page.text, 'lxml')
  
      products = soup.find_all('li', class_='s-item')
      print(products)
  
      if not products:
          break
      page_num = page_num + 1
  </code></pre>
  <p>When the <code>page_num &gt; 4</code> <code>products = []</code></p>