Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/banhao/scrape-youtube-channel-videos-url
This Python script is used to scrape all the video links from a youtube channel.
https://github.com/banhao/scrape-youtube-channel-videos-url
osint osint-python osint-tool python selenium selenium-python youtube youtube-channel
Last synced: about 1 month ago
JSON representation
This Python script is used to scrape all the video links from a youtube channel.
- Host: GitHub
- URL: https://github.com/banhao/scrape-youtube-channel-videos-url
- Owner: banhao
- License: mit
- Created: 2020-01-01T16:55:39.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-05T21:45:07.000Z (4 months ago)
- Last Synced: 2024-09-25T03:31:15.624Z (about 2 months ago)
- Topics: osint, osint-python, osint-tool, python, selenium, selenium-python, youtube, youtube-channel
- Language: Python
- Size: 51.8 KB
- Stars: 49
- Watchers: 1
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scrape YouTube Channel Videos URL
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)scrape-youtube-channel-videos-url.py is used to grab the video links from a YouTube Channel.
How to use it:
If you want to get all the video links from CBC channel, so just run the command like following:python3 scrape-youtube-channel-videos-url.py -b firefox -u "https://www.youtube.com/@CBC/videos"
python3 scrape-youtube-channel-videos-url.py -b edge -u "https://www.youtube.com/@CBC/videos"
python3 scrape-youtube-channel-videos-url.py -b chrome -u "https://www.youtube.com/@CBC/videos"
Example result CBCtv-202001011120.list was uploaded.This can be run in Windows or Linux. but don't use the 'root' to run the script in Linux, because seems in Linux you can't use 'root' account to open a browser.
Test results:
OS | Window10 + python 3.11.2 + selenium 4.8.2 + webdriver-manager 4.0.1 | Linux + python 3.9.2 + selenium 4.20.0 + webdriver-manager 4.0.1
Python3 | passed Firefox 125.0.2 (64-bit) | passed Firefox 125.0.3 (64-bit)
Python3 | passeed Edge 124.0.2478.80 (64-bit) | passed Edge 124.0.2478.97 (64-bit)
Python3 | passed Chrome 124.0.6367.202 (64-bit) | passed Chrome 124.0.6367.201 (64-bit)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------If you want to download all the videos you can use youtube-dl:
https://github.com/ytdl-org/youtube-dlyoutube-dl -a CBCtv-202001011120.list
Notice: If you run the Python script in Windows, the end line is CRLF, you need use dos2unix to change it to UNIX format before you start the next steps in Linux.