It is a tool that takes the name of a YouTube channel as input and uses Selenium, a web automation library, to extract all video links from that channel. The tool then generates a JSON file containing all the video links for easy access and further analysis. This solution is useful for obtaining video data programmatically from YouTube channels without the need for an API key, making it accessible for researchers, content creators, and data enthusiasts.
Installing Python (3.11) pakages in virtual environment is recommended.
Install Python Virtual Environment
After your virtual environment is activated, run command
pip install -r requirements.txt
python scraper.py
Note: To add channel name, open scraper.py
file, scroll to the bottom of file and change value of variable
channels = [
"visualizersclub",
"Skymography",
] # Name of @channels
After scraper run successfully, their will be files generated named at output/<channels_name>_links.json
which contains all the videos link.