Skip to content

Parth971/YouTube-Video-Links-Extractor-Using-Selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Video Links Extractor Using Selenium

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.

Install Virtual Environment

Installing Python (3.11) pakages in virtual environment is recommended.

Install Python Virtual Environment

Install requirements.txt

After your virtual environment is activated, run command

pip install -r requirements.txt

To Run YouTube Scraper

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages