Now we will set the URL from the Amazon page that we would like to scrape.
We would also define User-Agent request header in the headers variable that lets servers and network peers identify the application, operating system, vendor, and/or version of the requesting user agent.
Set the URL and store it in the amazon_url
variable
<<your code goes here>> = 'https://www.amazon.in/Apple-MacBook-Air-13-3-inch-MQD32HN/product-reviews/B073Q5R6VR/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&amp;reviewerType=all_reviews&amp;pageNumber='
Store the User-Agent request header in the headers
variable
headers = {'User-Agent': user_agent}
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
Please login to comment
Be the first one to comment!