Project- Exploring Web Scraping: Python Adventures on Wikipedia and Amazon

9 / 11

Scraping Amazon Product Reviews - URL to scrap

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.

INSTRUCTIONS
  • 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;amp;reviewerType=all_reviews&amp;amp;pageNumber='
    
  • Store the User-Agent request header in the headers variable

    headers = {'User-Agent': user_agent}
    
See Answer

No hints are availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...