i'm trying to webscrape some products and i'm getting this error whenever i'm enter the code
import bs4, requests
def getFravegaPrice(productUrl):
res = requests.get(productUrl)
res.raise_for_status ()
soup = bs4.BeautifulSoup(res.text, 'html.parser')
elems = soup.select('#wrapper > div.border-main > div > div > div.col-md-9.col-sm-9.col-xs-12 > div:nth-child(3) > ul > li:nth-child(7) > div')
return elems[0].text
price = getFravegaPrice('https://compragamer.com/index.php?seccion=3&cate=62&nro_max=50')
print ('The price is ' + price)
question from:https://stackoverflow.com/questions/65947751/why-index-out-of-range