The YouTube Transcript Scraper is a Python script that allows you to scrape transcripts from multiple YouTube videos in bulk. You can use it in interactive mode by providing YouTube video URLs one by one, or you can provide a list of YouTube video URLs in a text file for batch processing.
Before you begin, make sure you have the following installed:
- Python 3.x
- Required Python packages (install them using
pip
):pyppeteer
beautifulsoup4
Clone this repository to your local machine or download the ytts.py
script:
git clone github.com/ParallaxCoder/YTTS.git
cd YTTS
pip3 install -r requirements.txt
You can use the YouTube Transcript Scraper in two modes: interactive mode and batch mode.
In interactive mode, you can provide YouTube video URLs one by one. To run the script interactively, simply execute the following command:
python ytts.py
Follow the prompts to input YouTube video URLs. The script will scrape the transcripts one by one.
In batch mode, you can provide a list of YouTube video URLs in a text file. To run the script in batch mode,
use the -i
or --input
flag followed by the path to the text file containing the video URLs:
python ytts.py -i /path/to/yturls.txt
The script will process all the URLs in the text file and scrape the transcripts for each video.
This project is licensed under the GNU General Public License version 3 (GPLv3) - see the LICENSE file for details.