This repository contains two scripts for scraping YouTube video data. One uses Google Apps Script with the YouTube API, and the other is a browser-based script that captures video data directly from the console.
- Google Account: Required to use the Google Apps Script with YouTube API.
- YouTube Data API Key: Required to fetch data from YouTube API.
- Browser with Developer Tools: Required to run the console script.
This script fetches YouTube video data using the YouTube API and stores it in a Google Spreadsheet.
- Open a Google Spreadsheet.
- Go to
Extensions > Apps Script
. - Paste the code from
youtube_data_appscript.gs
. - Replace
API_KEY
with your YouTube Data API key. - Save and run the script to populate your spreadsheet with video data.
- Search by Channel ID
- Search by keyword
Youtube.Data.API.mp4
This script scrapes YouTube video data directly from the browser console and copies it to your clipboard.
- Open Specific YouTube channel in your browser, scroll all the video until the end.
- Press
F12
or press⌥⌘
+i
in Mac to open Developer Tools. - Go to the
Console
tab. - Paste the code from
browser_script.js
and hit Enter. - The data will be copied to your clipboard.
Scrape.Data.Youtube.mp4
This project is licensed under the MIT License - see the LICENSE file for details.