I have to fetch data from the following webpage.
https://www.snapdeal.com/product/skycandle-purple-magic-mop/624744850271#bcrumbSearch:magic%20mop
I have also attached a screenshot of the page. My goal is to fetch the reviews entered by the buyer's in the "Customer Reviews" section that can be found by scrolling down a little.
Screenshot of the 'Customer Reviews' section
import urllib.request
wiki = "https://www.snapdeal.com/product/skycandle-purple-magic-mop/624744850271#bcrumbSearch:magic%20mop"
page = urllib.request.urlopen(wiki)
from bs4 import BeautifulSoup
soup = BeautifulSoup(page)
#for printing comments
comm = soup.find_all("div", {"class" : "reviewareain clearfix"})
print (comm)
But I do not get any output when I run this program. The class name and tags that i have mentioned, I used 'inspect element' on my chrome browser to find out the same. I guess I have selected the wrong class-name due to the multiple nested <div>
tags in the structure of the html
I am new to python and so, a simple and comprehensive answer will be appreciated. Also, please suggest some good online material to study beautifulsoup, apart from the official documentation.