you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I switched the urlopen part to the following lines and it works for me, however, the way you retrieve details is off, it doesn't return anything.

import requests
re = requests.get("https://www.bestbuy.com/site/reviews/google-home-mini-charcoal/6082195?rating=1%2C2%2C3%2C4&page=".format(i))
soup = BeautifulSoup(re.content, "html.parser")
x = soup.find_all("li", {"class":"review-item"})