GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come scaricare video di Facebook utilizzando "youtube-dl" in Linux?

Non riesco a scaricare video di Facebook utilizzando youtube-dl . Durante il download si verifica il seguente errore:

$ youtube-dl https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater
[1] 5101
[2] 5102
[3] 5103
theater: command not found
[2]-  Done                    set=vb.107925785982
[3]+  Done                    type=2
[2]-  Done                    set=vb.107925785982
[3]+  Done                    type=2
$ [generic] video: Requesting header

$ WARNING: Falling back on generic information extractor.
[generic] video: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>

[1]+  Exit 1                  youtube-dl

Tribal peoples have developed ways of life that are largely self-sufficient and extraordinarily diverse. But they are portrayed as backward and primitive simply because their communal ways are different.We won't give up until we have a world where tribal peoples are respected as contemporary societies. But we depend on your support: www.survivalinternational.org/actnowLike: Survival International & Films For Action

Posted by Films For Action on Monday, December 15, 2014

Risposta accettata:

Quando si utilizza youtube-dl prova a ripulire l'URL che usi. Ad esempio, il seguente URL sarà lavoro. Grazie per il video ^_~.

  • https://www.facebook.com/video.php?v=10152588878600983

Come hai installato youtube-dl ? Se l'hai installato tramite apt , consiglierei quanto segue:

sudo apt-get remove youtube-dl
sudo apt-get install $(apt-cache depends youtube-dl | grep Depends | sed "s/.*ends: //" | tr 'n' ' ')
sudo pip install youtube-dl

pip sembra avere una versione più aggiornata.

Alcuni personaggi devono essere sfuggiti per evitare problemi. Puoi citare il tuo URL per evitare questi problemi:

  • youtube-dl 'https://domain.tld/path/file.ext'

Ubuntu
  1. Come caricare o scaricare file/directory utilizzando sFTP in Linux

  2. Come scaricare brani MP3 da un video di YouTube utilizzando YouTube-DL

  3. Scarica i video di YouTube nella riga di comando di Linux utilizzando youtube-dl

  4. Linux:come trasmettere un video locale in webcam utilizzando Ffmpeg?

  5. Come scaricare solo i file Info-json utilizzando Youtube-dl, senza scaricare il video effettivo?

Come scaricare file utilizzando Wget tramite proxy in Linux

Come installare uGet Download Manager su Ubuntu Linux

Come scaricare solo audio utilizzando youtube-dl

Come installare ClipGrab su Ubuntu 20.04 LTS per scaricare video di Youtube

Come copiare file in Linux usando il comando CP

Come installare WordPress usando Nginx in Ubuntu Linux