Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
In the previous assessment, we scraped a Wikipedia page using Beautiful Soup. This time, we would use lxml to scrape the reviews from the Amazon page given below:
https://www.amazon.in/Test-Exclusive-558/product-reviews/B077PWJRFH/?pageNumber=2
lxml is is a Pythonic binding for the C libraries libxml2 and libxslt. It is one of the fastest and feature-rich libraries for processing XML and HTML in Python. Using Python lxml library, XML and HTML documents can be created, parsed, and queried.
You can find out more about lxml from their official page given below:
First, we will import the html module from the lxml library
from <<your code goes here>> import html
Now, like we did in the previous assessment, we will import the requests module to make HTTP request
import <<your code goes here>>
Finally, we will import Pandas as pd
import pandas as <<your code goes here>>
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...