Git Product home page Git Product logo

scrape-youtube-channel-videos-url's Introduction

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 https://www.youtube.com/user/CBCtv/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.

Please install the "selenium" first.

https://pypi.org/project/selenium/

And you also need to download the browser drivers

https://selenium-python.readthedocs.io/installation.html#drivers

Test results:

OS			|	Window10	|	Linux
Python3 + FireFox	|	passed		|	passed
Python3 + Chrome	|	passed		|	haven't installed the chrome 

I didn't test in IE and Edge, because I rarely use that 2 browers.

If you want to download all the videos you can use youtube-dl:

https://github.com/ytdl-org/youtube-dl

youtube-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.

scrape-youtube-channel-videos-url's People

Contributors

banhao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.