3

I am unable to access YouTube on HTTP. But I can access the same on an HTTPS.

When I executed the command wget https://www.youtube.com/watch?v=StJLvbPIvTw it returned the following response:

--2013-03-04 13:09:28--  https://www.youtube.com/watch?v=StJLvbPIvTw
Resolving www.youtube.com (www.youtube.com)... 74.125.236.167, 74.125.236.160, 74.125.236.164, ...
Connecting to www.youtube.com (www.youtube.com)|74.125.236.167|:443... connected.
Unable to establish SSL connection.

Please guide me on how to download the YouTube videos on HTTPS.

Suhaib
  • 4,110
Vipin Verma
  • 5,454
  • 3
    This looks like a duplicate of http://askubuntu.com/questions/63270/how-do-i-download-a-youtube-video, but because of the https part it might not be one. – don.joey Mar 04 '13 at 08:52

5 Answers5

8

Just don't use wget.

sudo apt-get install youtube-dl
youtube-dl https://www.youtube.com/watch?v=StJLvbPIvTw

Works on my system.

don.joey
  • 28,662
  • does it works with HTTPS too?? – Vipin Verma Mar 04 '13 at 08:52
  • i tried it, but it gave the error:- `[youtube] Setting language

    [youtube] StJLvbPIvTw: Downloading video webpage

    [youtube] StJLvbPIvTw: Downloading video info webpage ERROR: "token" parameter not in video info for unknown reason`

    – Vipin Verma Mar 04 '13 at 08:54
  • did you copy-paste my commands? it works perfectly here. Try it for some other youtubes. Here is the source code: https://bitbucket.org/rg3/youtube-dl/src/4ad292a3161c0e3bc6d7ff3459e4fb2d2e790b70/youtube-dl – don.joey Mar 04 '13 at 08:58
  • @vipin8169 You probably need a more recent version of youtube-dl. – qbi Mar 04 '13 at 09:02
  • yes i copy pasted your command. – Vipin Verma Mar 04 '13 at 09:08
  • @qbi how to get the latest version then, i used sudo apt-get install youtube-dl. i hope it gets the latest version by default – Vipin Verma Mar 04 '13 at 09:08
  • What Ubuntu version do you use? – qbi Mar 04 '13 at 09:12
  • i use version 12.04 – Vipin Verma Mar 04 '13 at 09:13
  • 1
    @vipin8169 No, the command won't get the latest version as the version the Ubuntu repositories is quite old (quite old considering how often Youtube API changes, affecting all these downloader programs). I edited the instructions on how to get the latest version (as of writing this comment, edit not yet approved). I don't know if there are any https related fixes in the newer version(s), but you should try anyway. – pileofrocks Mar 04 '13 at 18:13
2

Found from some other Question:- Use the URL savefrom.net and type in https://www.youtube.com/watch?v=StJLvbPIvTw. Press Download button and you can download it in any format :)) No matter whether you access it via HTTPS or HTTP

you can download the chrome app also from here>> http://en.savefrom.net/user.php

enter image description here

Vipin Verma
  • 5,454
1

you can't use wget to download video from youtube because the adress is just the webpage of the video, not the video file.

youtube-dl works with https (actual version).

i don't know if you have fixed your problem with youtube-dl, but if you followed the installation procedure mentioned on the website (and installed it in /usr/local/bin), you should specify the output folder, like this :

cd /usr/local/bin
sudo youtube-dl -o '/home/username/Music/test.flv' https://www.uTube.com/v?=

by default youtube-dl download the best quality

another alternative is clipgrab.

it comes with a nice GUI :)

riimzzai
  • 1,128
0

Why don't you use the Video Download helper addon on firefox. Works great for me

Here's the link :

https://addons.mozilla.org/en-US/firefox/addon/video-downloadhelper/?src=ss

and it works with HTTPS.

0

According to your question and your location it might be that you are behind some restrictive network settings. So best is to enable HTTPS by default. You can install the plugin HTTPS Everywhere for Firefox or Google Chrome. This plugin tries to access YouTube as well as other pages per HTTPS by default. Furthermore the Firefox addons page has several plugins which allow you to download videos. For instance Video DownloadHelper works on several video pages. With both plugins combined you can download videos over HTTPS.

If you need a plugin for Chromium, have a look at this answer and also other answers for this question.

qbi
  • 19,125