6.4 Run the code and extract the data

To run the code in Command prompt, use the below command: python youtubedata.py

6.5 Store the data in a required format.

After scraping the relevant data from the web pages are done. We have to store the data in a structured format. For example, here we are storing the comments data into a .csv file using Pandas module.