K
K
Konstantin Tsvetkov2019-10-03 12:44:53
YouTube
Konstantin Tsvetkov, 2019-10-03 12:44:53

How to download a video available only after authorization?

Some videos became available only after authorization. For example:
Moscow does not believe in tears, episode 1 - without authorization,
Moscow does not believe in tears, episode 2 - authorization is required.
I checked several browser extensions, programs - download errors, at best, a password request. But you need two-factor authentication.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-10-03
@tsklab

Found youtube-dl .

Authentication Options:
    -u, --username USERNAME          Login with this account ID
    -p, --password PASSWORD          Account password. If this option is left
                                     out, youtube-dl will ask interactively.
    -2, --twofactor TWOFACTOR        Two-factor authentication code
    -n, --netrc                      Use .netrc authentication data
    --video-password PASSWORD        Video password (vimeo, smotri, youku)

Choose the tracks you want:
[youtube] X7GuhjGZ-xs: Downloading webpage
[youtube] X7GuhjGZ-xs: Downloading video info webpage
[info] Available formats for X7GuhjGZ-xs:
format code  extension  resolution note
249          webm       audio only DASH audio   62k , opus @ 50k, 22.39MiB
250          webm       audio only DASH audio   77k , opus @ 70k, 28.26MiB
140          m4a        audio only DASH audio  134k , m4a_dash container, [email protected], 61.90MiB
251          webm       audio only DASH audio  145k , opus @160k, 53.61MiB
160          mp4        190x144    144p  111k , avc1.4d400b, 24fps, video only, 27.24MiB
278          webm       190x144    144p  141k , webm container, vp9, 24fps, video only, 42.46MiB
242          webm       316x240    240p  171k , vp9, 24fps, video only, 55.61MiB
243          webm       474x360    360p  304k , vp9, 24fps, video only, 95.19MiB
133          mp4        316x240    240p  321k , avc1.4d400d, 24fps, video only, 58.96MiB
244          webm       632x480    480p  562k , vp9, 24fps, video only, 132.94MiB
134          mp4        474x360    360p  617k , avc1.4d4015, 24fps, video only, 108.77MiB
135          mp4        632x480    480p 1034k , avc1.4d401e, 24fps, video only, 160.21MiB
247          webm       950x720    720p 1126k , vp9, 24fps, video only, 226.31MiB
136          mp4        950x720    720p 1553k , avc1.4d401f, 24fps, video only, 219.98MiB
248          webm       1424x1080  1080p 2002k , vp9, 24fps, video only, 663.92MiB
137          mp4        1424x1080  1080p 4322k , avc1.640028, 24fps, video only, 697.91MiB
43           webm       640x360    medium , vp8.0, [email protected], 337.39MiB
18           mp4        474x360    medium  450k , avc1.42001E, [email protected] 96k (44100Hz), 215.60MiB
22           mp4        950x720    hd720  589k , avc1.64001F, [email protected] (44100Hz) (best)

Download:
youtube-dl.exe -f 140 https://www.youtube.com/watch?v=X7GuhjGZ-xs 
youtube-dl.exe -f 137 https://www.youtube.com/watch?v=X7GuhjGZ-xs

[youtube] X7GuhjGZ-xs: Downloading webpage
[youtube] X7GuhjGZ-xs: Downloading video info webpage
[download] Destination: Москва слезам не верит 1 серия (драма, реж. Владимир Меньшов, 1979 г.)-X7GuhjGZ-xs.m4a
[youtube] X7GuhjGZ-xs: Downloading webpage
[youtube] X7GuhjGZ-xs: Downloading video info webpage
[download] Destination: Москва слезам не верит 1 серия (драма, реж. Владимир Меньшов, 1979 г.)-X7GuhjGZ-xs.mp4

You can download subtitles:
youtube-dl.exe --all-subs https://www.youtube.com/watch?v=X7GuhjGZ-xs

And most importantly, download the second series:
youtube-dl.exe --username **** --password **** --twofactor **** -f 140 https://www.youtube.com/watch?v=uUVd9j543s8
youtube-dl.exe --username **** --password **** --twofactor **** -f 137 https://www.youtube.com/watch?v=uUVd9j543s8

Use MKVToolNix to merge tracks into one file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question