A python script to scrape details of about videos of a YouTube channel with info like title, date published, duration, view count, like count, comments count and also the detailed list of all comments along with the replies received on those comments. YouTube Data API v3 is being used to fetch all data.
-
Add personal API key which can be generated from Google Developer Console.
-
Add channel id of the YouTube channel, whose details are required.
-
Install The Google APIs Client Library for Python:
pip install --upgrade google-api-python-client
- Run the following command in terminal:
python main.py