LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2023, 06:02 AM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Rep: Reputation: Disabled
Is it possible to download a playlist of videos from YouTube?


I often watch playlists of short educational videos from YouTube. Rather than sitting bolt-upright at my desk to watch them on my desktop computer, I prefer to copy them to a pen-drive, plug the pen-drive into the back of my TV and watch them couch-potato style on my sofa. After watching a batch I delete them.

An example is these playlists by numericalmethodsguy:

https://www.youtube.com/@numericalmethodsguy/playlists

1) Is it possible to download all or some of the videos in a playlist automatically?

2) Preferably I would like to prefix them with "001 ", "002 ", "003 ", .... so that they play in the right order.

3) As some playlists can be very long - for example those by "Professor Dave" - I would prefer to be able to download only part of the playlist, otherwise the computer could be busy all day.

Another example of good maths playlists are those by "Professor Leonard", although his videos are much longer, sometimes over three hours.

Thanks.

Professor Dave Explains playlists https://www.youtube.com/@ProfessorDa...ains/playlists

Professor Leonard playlists https://www.youtube.com/@ProfessorLeonard/playlists

Last edited by grumpyskeptic; 01-20-2023 at 04:02 AM.
 
Old 01-18-2023, 06:28 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,989

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
I guess youtube downloader can do that. http://ytdl-org.github.io/youtube-dl/
 
Old 01-18-2023, 11:35 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,712

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by grumpyskeptic View Post
I often watch playlists of short educational videos from YouTube. Rather than sitting bolt-upright at my desk to watch them on my desktop computer, I prefer to copy them to a pen-drive, plug the pen-drive into the back of my TV and watch them couch-potato style on my sofa. After watching a batch I delete them.

An example is these playlists by numericalmethodsguy:

https://www.youtube.com/@numericalmethodsguy/playlists

1) Is it possible to download all or some of the videos in a playlist automatically?
2) Preferably I would like to prefix them with "001 ", "002 ", "003 ", .... so that they play in the right order.
3) As some playlists can be very long - for example those by "Professor Dave" - I would prefer to be able to download only part of the playlist, otherwise the computer could be busy all day.

Another example of good maths playlists are those by "Professor Leonard", although his videos are much longer, sometimes over three hours.
Putting "how to download a playlist of videos from youtube on linux" into Google yields a lot of information; did you do any basic research??

Three of the over 53 million hits:
https://stackoverflow.com/questions/...ist-youtube-dl
https://www.makeuseof.com/download-y...inux-terminal/
https://www.xmodulo.com/how-to-downl...-in-linux.html
 
Old 01-18-2023, 12:07 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Quote:
1) Is it possible to download all or some of the videos in a playlist automatically?
Code:
man -P cat yt-dlp > yt-dp_man.txt

man yt-dlp | grep 'playlist'
Quote:
2) Preferably I would like to prefix them with "001 ", "002 ", "003 ", .... so that they play in the right order.
Example:
Code:
num=1
yt-dlp -f <format> <url> -o "$num"ut."%(ext)s"
num=$((num + 1))
Quote:
3) As some playlists can be very long - for example those by "Professor Dave" - I would prefer to be able to download only part of the playlist, otherwise the computer could be busy all day.
Read the man page

Example, first 5:
Code:
yt-dlp ytsearch5:numericalmethodsguy \
--flat-playlist \
--print "" \
--print "Video Title:" \
--print title \
--print "Video Duration:" \
--print duration_string \
--print "View Count:" \
--print view_count \
--print "Video Url:" \
--print urls
 
1 members found this post helpful.
Old 01-20-2023, 04:13 AM   #5
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
Thanks Teckk and others. I tried pasting in the last code given in my terminal and got this:

Code:
~$ yt-dlp ytsearch5:numericalmethodsguy \
> --flat-playlist \
> --print "" \
> --print "Video Title:" \
> --print title \
> --print "Video Duration:" \
> --print duration_string \
> --print "View Count:" \
> --print view_count \
> --print "Video Url:" \
> --print urls
Traceback (most recent call last):
  File "/usr/bin/yt-dlp", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'brotli' distribution was not found and is required by yt-dlp
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_yt-dlp.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/yt-dlp", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'brotli' distribution was not found and is required by yt-dlp
Something not working.

When I pasted in the first two lines of code, I got -

Code:
~$ man -P cat yt-dlp > yt-dp_man.txt
troff: <standard input>:1179: warning [p 16, 5.2i]: cannot adjust line
troff: <standard input>:1581: warning [p 20, 12.0i]: cannot adjust line
troff: <standard input>:2155: warning [p 27, 0.3i]: cannot adjust line
troff: <standard input>:2831: warning [p 33, 2.7i]: cannot adjust line
troff: <standard input>:2832: warning [p 33, 3.0i]: cannot adjust line
troff: <standard input>:2912: warning [p 34, 2.0i]: cannot adjust line

Last edited by grumpyskeptic; 01-20-2023 at 07:11 AM.
 
Old 01-20-2023, 04:27 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,989

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
apt install python3-brotli
probably helps
 
Old 01-20-2023, 09:01 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,712

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by grumpyskeptic View Post
Thanks Teckk and others. I tried pasting in the last code given in my terminal and got this:
Code:
~$ yt-dlp ytsearch5:numericalmethodsguy \
> --flat-playlist \
> --print "" \
> --print "Video Title:" \
> --print title \
> --print "Video Duration:" \
> --print duration_string \
> --print "View Count:" \
> --print view_count \
> --print "Video Url:" \
> --print urls
Traceback (most recent call last):
  File "/usr/bin/yt-dlp", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'brotli' distribution was not found and is required by yt-dlp
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_yt-dlp.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/yt-dlp", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'brotli' distribution was not found and is required by yt-dlp
Something not working. When I pasted in the first two lines of code, I got -
Code:
~$ man -P cat yt-dlp > yt-dp_man.txt
troff: <standard input>:1179: warning [p 16, 5.2i]: cannot adjust line
troff: <standard input>:1581: warning [p 20, 12.0i]: cannot adjust line
troff: <standard input>:2155: warning [p 27, 0.3i]: cannot adjust line
troff: <standard input>:2831: warning [p 33, 2.7i]: cannot adjust line
troff: <standard input>:2832: warning [p 33, 3.0i]: cannot adjust line
troff: <standard input>:2912: warning [p 34, 2.0i]: cannot adjust line
Did you read the first link that was looked up for you?? The one that uses youtube-dl by itself??? Has a EXACT COMMAND that does what you want.

And the error you posted was for python-brotli...and it said it couldn't be found. Would seem to make sense to look for/install that, since the program you were trying to run said it needed it.
 
Old 01-20-2023, 01:48 PM   #8
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
yt-dlp has about the same syntax as youtube-dl. Either one that you use, look at the man page.
Code:
man youtube-dl
man yt-dlp
https://man.archlinux.org/man/youtube-dl.1
https://man.archlinux.org/man/yt-dlp.1

@grumpyskeptic
Did you get a yt-dp_man.txt in that directory to read? That simply gives you a text file copy of a man page. Maybe a little easier to read.

When you get yt-dlp working correctly, or youtube-dl:
Code:
yt-dlp ytsearch5:numericalmethodsguy \
--flat-playlist \
--print "" \
--print "Video Title:" \
--print title \
--print "Video Duration:" \
--print duration_string \
--print "View Count:" \
--print view_count \
--print "Video Url:" \
--print urls                                                                                                                            

Video Title:                                                                                                                           
Taylor Series: Example                                                                                                                                     
Video Duration:
6:31                                                                                                    
View Count:
56594
Video Url:
https://www.youtube.com/watch?v=UqiHOM7WwkI

Video Title:
Forward Divided Difference: Numerical Differentiation: Part 1
Video Duration:
9:28
View Count:
86539
Video Url:
https://www.youtube.com/watch?v=KNFjPIqJAJ4

Video Title:
Chapter 08.02: Lesson: Euler's Method: Example
Video Duration:
10:57
View Count:
315329
Video Url:
https://www.youtube.com/watch?v=4CqaepeaJHA

Video Title:
Chapter 07.03: Lesson: Simpson's One Third Rule of Integration: Example
Video Duration:
7:04
View Count:
140382
Video Url:
https://www.youtube.com/watch?v=gt3QZgMNq3s

Video Title:
Chapter 08.07: Lesson: Finite Difference Method for Solving ODEs: Example: Part 1 of 2
Video Duration:
9:56
View Count:
265345
Video Url:
https://www.youtube.com/watch?v=NXel87Do0bA
 
1 members found this post helpful.
Old 01-20-2023, 03:05 PM   #9
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
And since I know that you are going to have problems...
Here, this will get you started.

Code:
yt-dlp ytsearch50:ProfessorDaveExplains \
--flat-playlist \
--print "" \
--print title \
--print urls

Professor Dave Humiliates Flat Earther David Weiss (DITRH Debunked Live)
https://www.youtube.com/watch?v=he-7vs0BkLE

An Amusing "Discussion" With Jesse Lee Peterson
https://www.youtube.com/watch?v=dVG1dNygOgA

The Delicious Unraveling of James Tour
https://www.youtube.com/watch?v=7hIBg_a5rnQ

Decongestants: Adrenergic Receptor Agonists
https://www.youtube.com/watch?v=0eMFZrsA5DE

Exposing the Discovery Institute Part 4: Günter Bechly
https://www.youtube.com/watch?v=NFPHvvJWVAk

Quantum Mysticism is Stupid (Deepak Chopra, Spirit Science, Actualized.org)
https://www.youtube.com/watch?v=aQTWor_2nu4

Exposing the Discovery Institute Part 3: Michael Behe
https://www.youtube.com/watch?v=MVQGQz-0Xeo

Discussion on MythVision Podcast (Flat Earth Caller Debunked Live!)
https://www.youtube.com/watch?v=WoJhcTdlAhk

Response to Matt Walsh: Cancel This
https://www.youtube.com/watch?v=9uZOLtdIA7Y

Exposing the Discovery Institute Part 1: Casey Luskin
https://www.youtube.com/watch?v=HRxq1Vrf_Js

The Circulatory System Part 1: The Heart
https://www.youtube.com/watch?v=R1kfeURl9Rk

Professor Dave Destroys Kent Hovind (Young Earth Creationism Debunk)
https://www.youtube.com/watch?v=lbB7AhwaZy8

The SAFIRE Project Is Not Real Science (Electric Sun Model Debunked)
https://www.youtube.com/watch?v=vmVdPgkudC8

Understanding Differentiation Part 1: The Slope of a Tangent Line
https://www.youtube.com/watch?v=ktOYbZ8CpLA

The Future Colonization of Space: Terraforming and Dyson Spheres
https://www.youtube.com/watch?v=MgSc5ysT6L4

Lies People Tell About Water – Part 1: Water Fluoridation
https://www.youtube.com/watch?v=bRnBHml8nto

Ask Professor Dave #1: What's My Ethnicity?
https://www.youtube.com/watch?v=WUQMb18ran4

Exposing the Discovery Institute Part 2: Stephen Meyer
https://www.youtube.com/watch?v=Akv0TZI985U

Introduction to Trigonometry: Angles and Radians
https://www.youtube.com/watch?v=0GkmnPdD6jY

Wal Thornhill is a Complete Fraud (Thunderbolts Project Debunked)
https://www.youtube.com/watch?v=KNTu_pqmq2E

Welcome to Professor Dave Explains!
https://www.youtube.com/watch?v=pYVgB2lnztY

Response to Globebusters - The Earth Still Isn't Flat
https://www.youtube.com/watch?v=JDy95_eNPzM

Ask Professor Dave #2: Are You A Real Professor?
https://www.youtube.com/watch?v=PkA4OImGuBk

Everything You Need to Know (And Forget) About Vaccines
https://www.youtube.com/watch?v=-EPbylsBuzg

Social Psychology Part 1: The Power of Situation and Framing
https://www.youtube.com/watch?v=5sPTDmazgJM

Introduction to Classical Physics
https://www.youtube.com/watch?v=RIvJvHBguHg

Algebraic Equations With Variables on Both Sides
https://www.youtube.com/watch?v=aJ0abU348ds

Lies People Tell About Water – Part 2: Special Waters (Raw, Alkaline, Oxygenated, etc.)
https://www.youtube.com/watch?v=ZjFL8LtZBzE

Response to James Tour: 700 Papers and Still Clueless (Part 1 of 2)
https://www.youtube.com/watch?v=ghJGnMwRHCs

Let’s All Get Past This Confusion About Trans People
https://www.youtube.com/watch?v=fpGqFUStcxc

Decimals: Notation and Operations
https://www.youtube.com/watch?v=jC4SWFag6Qw

The Five Core Dimensions of Personality
https://www.youtube.com/watch?v=2iw1wOGjm1k

Professor Dave Presents: Exorcism Priest Exposed
https://www.youtube.com/watch?v=7jKCRxm0bH4

Elucidating the Agenda of James Tour: A Defense of Abiogenesis
https://www.youtube.com/watch?v=SixyZ7DkSjA

Subscribe to Professor Dave Explains!
https://www.youtube.com/watch?v=Q6Oa5le8pHQ

Destroying Flat Earth Without Using Science - Part 4: The Conspiracy
https://www.youtube.com/watch?v=7ae_XdFEQDw

What is a Derivative? Deriving the Power Rule
https://www.youtube.com/watch?v=x3iEEDxrhyE

Will Synthetic Vitamins Make Me Explode?
https://www.youtube.com/watch?v=wioqhkDpI_I

Inverse Functions
https://www.youtube.com/watch?v=9fJsrnE1go0

Practice Problem: One-Dimensional Two-Body Problem
https://www.youtube.com/watch?v=D5QFdGS3Qkg

Why You Should Never Say "It's Just A Theory"
https://www.youtube.com/watch?v=h0H-amOti_o

A Challenge For Mr. Kent Hovind
https://www.youtube.com/watch?v=wS4D-PRFZR0

Solubility and the Born-Haber Cycle
https://www.youtube.com/watch?v=8Z_H0Tt_hqs

Professor Dave Explains: Natural vs. Synthetic Vitamins
https://www.youtube.com/watch?v=C4Atx_uq1TE

10 Challenges For Flat Earthers
https://www.youtube.com/watch?v=AQl8h7Aa75s

Ask Professor Dave #3: What's Your Tattoo?
https://www.youtube.com/watch?v=799W7wOXULE

Suspicious0bservers is a Pseudoscientific Doomsday Cult
https://www.youtube.com/watch?v=3fTLZTEE7mU

SN1 Reaction
https://www.youtube.com/watch?v=Gw-XAXqxppI

The Central Nervous System: The Brain and Spinal Cord
https://www.youtube.com/watch?v=Eo3Dp0h5490

Stop Misusing Logical Fallacies
https://www.youtube.com/watch?v=DNdriP9kFiQ

Last edited by teckk; 01-20-2023 at 03:10 PM.
 
Old 01-20-2023, 03:06 PM   #10
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Code:
yt-dlp ytsearch50:ProfessorLeonard \
--flat-playlist \
--print "" \
--print title \
--print urls

I'm BACK - Professor Leonard Update
https://www.youtube.com/watch?v=1vH00iNHIA4

What in the World Happened to Professor Leonard?!
https://www.youtube.com/watch?v=8h1lJwKbm8E

Professor Leonard Kisses an Animal!
https://www.youtube.com/watch?v=rKoUSsl3q80

Calculus 3 Lecture 11.1:  An Introduction to Vectors
https://www.youtube.com/watch?v=tGVnBAHLApA

How to Study for Math (TTP Video 1)
https://www.youtube.com/watch?v=cqk4vcuKoBQ

Calculus 1 Lecture 2.2:  Techniques of Differentiation (Finding Derivatives of Functions Easily)
https://www.youtube.com/watch?v=EY6FHX6asU0

Introduction to Functions (Precalculus - College Algebra 2)
https://www.youtube.com/watch?v=FkUEsP9efFg

Calculus 2 Lecture 6.1:  The Natural Log Function
https://www.youtube.com/watch?v=H9eCT6f_Ftw

Calculus 2 Lecture 9.1:  Convergence and Divergence of Sequences
https://www.youtube.com/watch?v=FoNLQvf4NUs

A Word of Encouragement
https://www.youtube.com/watch?v=59r_yhp9e_g

Professor Leonard's Important Announcement 2019
https://www.youtube.com/watch?v=czQxDNqBjIY

Statistics Lecture 8.2: An Introduction to Hypothesis Testing
https://www.youtube.com/watch?v=ev8cKdrdA4s

Calculus 2 Lecture 7.1:  Integration By Parts
https://www.youtube.com/watch?v=EOwjiFpDY_s

How to Evaluate Functions (Precalculus - College Algebra 3)
https://www.youtube.com/watch?v=p1sGAHulT8w

Calculus 1 Lecture 1.5:  Slope of a Curve, Velocity, and Rates of Change
https://www.youtube.com/watch?v=PqQ5v94_NGM

Calculus 1 Lecture 4.1:  An Introduction to the Indefinite Integral
https://www.youtube.com/watch?v=b2ZFpE_yrLg

Calculus 1 Lecture 4.4:  The Evaluation of Definite Integrals
https://www.youtube.com/watch?v=K0ORDCt5Ig0

Corona Update and Encouragement
https://www.youtube.com/watch?v=5ojcj2NSasw

Prealgebra Lecture 4.3: How to Multiply and Divide Fractions
https://www.youtube.com/watch?v=y0YjFlkuGwY

Statistics Lecture 1.5: Sampling Techniques.  How to Develop a Random Sample
https://www.youtube.com/watch?v=MfkJu7J1LE4

Calculus 1 Lecture 1.2:  Properties of Limits.  Techniques of Limit Computation
https://www.youtube.com/watch?v=VSqOZNULRjQ

Statistics Lecture 1.1:  The Key Words and Definitions For Elementary Statistics
https://www.youtube.com/watch?v=9FtHB7V14Fo

Calculus 2 Lecture 7.3:  Integrals By Trigonometric Substitution
https://www.youtube.com/watch?v=q6JwTGpG8b4

Calculus 1 Lecture 5.1:  Finding Area Between Two Curves
https://www.youtube.com/watch?v=c7wur9Lixb0

Charlie Rose Speaks to Professor Leonard Jeffries
https://www.youtube.com/watch?v=stejFJMmkU0

Introduction to Logarithms and Their Graphs (Precalculus - College Algebra 55)
https://www.youtube.com/watch?v=jfnTwz79PWU

The Plan for Differential Equations (Differential Equations 1)
https://www.youtube.com/watch?v=xf-3ATzFyKA

Graphing Quadratic Functions (Precalculus - College Algebra 24)
https://www.youtube.com/watch?v=VH4tzzBVbgA

Finding Inverse Functions (Precalculus - College Algebra 51)
https://www.youtube.com/watch?v=fK7IPeeZoFE

Geometric Sequences (Precalculus - College Algebra 71)
https://www.youtube.com/watch?v=qyHCnYewdrQ

Intermediate Algebra Lecture 10.7:  An Introduction to Operations with Complex Numbers
https://www.youtube.com/watch?v=HbJs3rdccYY

Graphs You Must Know (Precalculus - College Algebra 13)
https://www.youtube.com/watch?v=NrmmR3-VxA8

Introduction to Using Trigonometric Identities (Precalculus - Trigonometry 23)
https://www.youtube.com/watch?v=yIMR-3c1wP8

How to Use the Unit Circle in Trigonometry (Precalculus - Trigonometry 7)
https://www.youtube.com/watch?v=GdRZfemxTFI

Calculus 1 Lecture 0.2:  Introduction to Functions.
https://www.youtube.com/watch?v=1EGFSefe5II

Channel Introduction II
https://www.youtube.com/watch?v=HQefO4iLM0g

Properties of Logarithms (Precalculus - College Algebra 58)
https://www.youtube.com/watch?v=u0uScdsBPfk

Statistics Lecture 7.5: Confidence Intervals for Variance and Std Dev. Chi-Squared Distribution.
https://www.youtube.com/watch?v=w__TNyXH_xA

Calculus 3 Lecture 14.1:  INTRODUCTION to Double Integrals (Background Info)
https://www.youtube.com/watch?v=lv_awaaT6gY

Introduction to Differential Equations (Differential Equations 2)
https://www.youtube.com/watch?v=EWVSxND_iWA

Statistics Lecture 4.2: Introduction to Probability
https://www.youtube.com/watch?v=_EpXHuPnaK0

Solving Systems of Equations by Elimination Method (TTP Video 53)
https://www.youtube.com/watch?v=PwdR8FxAWqw

Statistics Lecture 5.4: Finding Mean and Standard Deviation of a Binomial Probability Distribution
https://www.youtube.com/watch?v=4Ew60JEPGUk

Calculus 3 Lecture 13.5:  The Chain Rule for Multivariable Functions
https://www.youtube.com/watch?v=tXryaM-mTpY

Statistics Lecture 3.3: Finding the Standard Deviation of a Data Set
https://www.youtube.com/watch?v=4-FysvtxQEU

Introduction to Graph Transformations (Precalculus - College Algebra 14)
https://www.youtube.com/watch?v=sTCRB6hMsC4

How to Graph with Transformations (Precalculus - College Algebra 15)
https://www.youtube.com/watch?v=HkrMJLSpJFI

Calculus 3 Lecture 13.9:  Constrained Optimization with LaGrange Multipliers
https://www.youtube.com/watch?v=nUfYR5FBGZc

Calculus 3 Lecture 12.1:  An Introduction To Vector Functions
https://www.youtube.com/watch?v=YThPIdcwr78

Intermediate Algebra Lecture 7.1:  Defining and Simplifying Rational Expressions
https://www.youtube.com/watch?v=qgwjhfjCvJ4

Last edited by teckk; 01-20-2023 at 03:12 PM.
 
Old 01-20-2023, 03:16 PM   #11
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
And if you are interested in Science. Do a search for Prof. Brian Greene on utube. (Theoretical physicist) Also World Science Festival
 
Old 02-10-2023, 12:17 PM   #12
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
I have yet to figure out how to download playlists, such as the 650-item playlist ( https://www.youtube.com/playlist?lis...MdCiYXyg4ymxrK ) at

TLMaths https://www.youtube.com/@TLMaths

TLMaths is very good in working through a lot of examples, and you can check your understanding by anticipating the calculations step by step in your head or on paper to see if you get the same result.

Others I also like -

Eddie Woo https://www.youtube.com/@misterwootube

NancyPi https://www.youtube.com/@NancyPi

The above are better for learning than those videos with award-winning animated computer graphics and background music, or too much ego, which distract.

Last edited by grumpyskeptic; 02-10-2023 at 01:02 PM.
 
Old 02-10-2023, 12:57 PM   #13
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Quote:
I have yet to figure out how to download playlists, such as the 650-item playlist about numerical methods at
Why? I gave you working examples.

I don't have youtube-dl installed, I do have yt-dlp installed.

First 5.
Code:
yt-dlp ytsearch5:TLMaths --flat-playlist --print "" --print title --print urls

A-Level Maths WHOLE COURSE RECAP
https://www.youtube.com/watch?v=2zLFzATSR30

TLMaths Halloween V
https://www.youtube.com/watch?v=osrr9WG0HeQ

TLMaths Halloween IV
https://www.youtube.com/watch?v=ZfkvGEQqYZA

TLMaths Halloween III: Slendermaths
https://www.youtube.com/watch?v=KWccG1Qa4hg

A-Level Maths: G5-02 Differentiation: Introducing Implicit Differentiation
https://www.youtube.com/watch?v=x-_E9rX3SzY
Don't hit youtube too hard, or google will throttle you, or cut you off for a while.

Code:
yt-dlp ytsearch5:misterwootube --flat-playlist --print "" --print title --print urls

Composite Figures (1 of 3: Polygons)
https://www.youtube.com/watch?v=xsl-jlml6AM

Introduction to Fractions
https://www.youtube.com/watch?v=nBdWxsm6x5M

Introduction to Logarithms (1 of 2: Definition)
https://www.youtube.com/watch?v=ntBWrcbAhaY

YouTube Stories: Learning Mathematics with Wootube
https://www.youtube.com/watch?v=r2wtesw2J7Q

WooTube
https://www.youtube.com/watch?v=qwIUAtRLAjA
I would make a txt file with all of the video urls in it. Then slowly iterate through the list and get them. Or get just a few at a time.

Example:
Code:
array=(
#A-Level Maths WHOLE COURSE RECAP
https://www.youtube.com/watch?v=2zLFzATSR30

#TLMaths Halloween V
https://www.youtube.com/watch?v=osrr9WG0HeQ

#TLMaths Halloween IV
https://www.youtube.com/watch?v=ZfkvGEQqYZA

#TLMaths Halloween III: Slendermaths
https://www.youtube.com/watch?v=KWccG1Qa4hg

#A-Level Maths: G5-02 Differentiation: Introducing Implicit Differentiation
https://www.youtube.com/watch?v=x-_E9rX3SzY
)

num=1
for vid in "${array[@]}"; do
    echo "yt-dlp -f 18 "$vid" -o "$num"TLMaths.mp4"
    sleep 1 #I would sleep 45-60 seconds here
    num=$((num + 1))
done
Or... It looks like those tools might have that already built in, like these examples: (Use your own parms)
Code:
yt-dlp -f 18 --download-archive videos.txt <url> -o '%(channel_id)s/%(playlist_id)s/%(id)s.%(ext)s'

yt-dlp -f 18 --download-archive videos.txt https://www.youtube.com/@TLMaths -o '%(channel)s/%(title)s.%(ext)s'
Read the man page for your tool. Put together the script that you want. Either spit out the links with your youtube downloader tool, then iterate through them, or, Use the --switches that the tools have built in to accomplish the task.
 
Old 02-10-2023, 01:03 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,712

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by grumpyskeptic View Post
I have yet to figure out how to download playlists, such as the 650-item playlist about numerical methods at

TLMaths https://www.youtube.com/@TLMaths

TLMaths is very good in working through a lot of examples, and you can check your understanding by anticipating the calculations step by step in your head or on paper to see if you get the same result. Others I also like -

Eddie Woo https://www.youtube.com/@misterwootube
NancyPi https://www.youtube.com/@NancyPi

The above are better for learning than those videos with award-winning animated computer graphics and background music, or too much ego, which distract.
You were told what missing package to install; did you actually do it?? And since you don't say what you did (assuming you installed the missing package) after, or what message(s)/problem(s) you're now having, what do you think we'll be able to tell you??

What you want to download and why is immaterial; things were looked up for you and given to you, with EXACT COMMANDS to do what you're after. Did you try the youtube-dl command??? The one that specifically has this command:
Code:
youtube-dl --ignore-errors --format bestaudio --extract-audio --audio-format mp3 --audio-quality 160K --output "%(title)s.%(ext)s" --yes-playlist 'https://www.youtube.com/playlist?list={your-youtube-playlist-id}'
Going by the first link above, one of the playlists (N6, I believe) is:
Code:
https://www.youtube.com/watch?v=0JCKfnMXN7Q&list=PLg2tfDG3Ww4v_SFDksHfwV05Imsf8fAnU&ab_channel=TLMaths
Amazingly, putting that URL into the exact command handed to you earlier, it downloads all 10 of the videos in that playlist. Which seems to be exactly what you asked, isn't it??? Because that channel has *MULTIPLE PLAYLISTS*...you asked how to download "a playlist", which is what you got told.

If you want to download ALL of their playlists, then create a small script that will read a file of the different URL's to each playlist and run it. Or write your own piece of software to scrape all the URL's from a playlist-page on YouTube.
 
Old 02-11-2023, 06:46 AM   #15
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Why?
Busy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Cast YouTube Videos From Your Phone To Raspberry Pi Using YouTube On TV (youtube.com/tv) LXer Syndicated Linux News 0 04-16-2021 01:30 AM
LXer: How To Download A YouTube Playlist And Convert It To MP3 Using youtube-dl LXer Syndicated Linux News 0 10-22-2019 06:04 AM
LXer: youtube-dl – download Youtube videos from linux command Line LXer Syndicated Linux News 0 06-24-2014 12:11 PM
VLC loading default playlist or any other playlist from command line r00tb33r Linux - Software 0 12-29-2008 10:24 PM
LXer: Youtube-dl - Download videos from Youtube in openSUSE LXer Syndicated Linux News 1 08-14-2008 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration