
을(를) 사용하여 Facebook 비디오를 다운로드할 수 없습니다 youtube-dl
. 다운로드하는 동안 다음 오류가 발생합니다.
$ 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
https://www.facebook.com/video.php?v=10152588878600983
답변1
사용할 때 youtube-dl
사용하는 URL을 정리하십시오. 예를 들어, 다음 URL~ 할 것이다일하다. 영상 감사합니다 ^_~.
어떻게 설치하셨나요 youtube-dl
? 를 통해 설치한 경우 apt
다음을 권장합니다.
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
좀 더 최신 버전이 나온 것 같습니다.
문제를 방지하려면 일부 문자를 이스케이프 처리해야 합니다. 이러한 문제를 방지하려면 URL을 작은따옴표로 묶을 수 있습니다.
youtube-dl 'https://domain.tld/path/file.ext'
답변2
&
앰퍼샌드( )를 이스케이프 처리해야 합니다 . 또는전체 URL을 따옴표로 묶으세요.앰퍼샌드는 쉘에서 해석되는 특수 문자 중 하나이며 전체 URL을 youtube-dl에 전달하는 것을 방지합니다.이에 대한 추가 정보. 따라서 작은 따옴표로 묶으면 충분합니다.
youtube-dl 'https://www.facebook.com/video.php?v=10152588878600983&set=vb.107925785982&type=2&theater'
답변3
동영상을 마우스 오른쪽 버튼으로 클릭하고 > "동영상 URL 표시"를 클릭한 후 > URL을 복사하세요(페이스북 페이지의 URL이 아님).
그런 다음 터미널의 'youtube-dl' 옆에 복사한 URL을 붙여넣으세요.
예: youtube-dlhttps://www.facebook.com/Amhara-Mass-Media-Agency-118697174971952/
답변4
youtube-dl --username xxxxx --password xxxxx -t -f mp4 'https://www.facebook.com/xxxxx/videos/123456789'