Scrape IMDb website and create an own dataset

Web Scraping

In this article, we are going to scrape top 100 movies from the IMDb using the Beautiful Soup library in python.

First of all, we are going to import the required libraries to scrap the data.

Importing required libraries

Assigning the URL with variable name url

Requests allow you to send HTTP request

Creating an empty list, so that we can append the values

Storing the meaningful required data in the variable

Calling one by one using for loop

Create dataframe of the scraped data

Saving data in Excel file

movie_df.to_excel("Top_100_IMDB_Movies.xlsx")