I'm attempting to scrape Newegg product pages for prices and I always seem to be running into the same problem - the result is always 'None'.
Here's a few very basic lines of code that work for similar sites such as Amazon:
data = requests.get('https://www.newegg.com/Product/Product.aspx?Item=N82E16824475015&cm_sp=Homepage_Dailydeal-_-P1_24-475-015-_-03042019')
soup = BeautifulSoup(data.text, 'html.parser')
price = soup.find('li', class_='price-current').text.strip()
I'm expecting to get $419.99 as the output, but instead I get None.
When I try to get the product title, I get the desired result. It's only the prices that are giving me this issue. Has anyone had the same issue and how can this be fixed? Thanks in advance.