삭제

myotis17의 이미지

http://en.savefrom.net/
이 사이트에 url 을 넣어서 수동으로 다운로드 하는 형태로 모으고 있습니다.
이 과정을 좀 자동화 시키고 싶은데
이런건 잘 안짜봐서 어떻게 해야할지 감이 안잡이네요 ㅜ

kippler의 이미지

github 에서 youtube download 로 검색하면 소스가 좀 나옵니다.

https://github.com/johnny0614/YoutubeVideoDownload

usage: YoutubeVideoDownload.py [-h] url type

======== 서명 =======
주거지는 www.indidev.net 입니다.

myotis17의 이미지

감사합니다

그러면 이 툴을 사용해서

스크립트화 시키면 되나요?

필요한 url 을 자동으로 모으는 법도 따로 있을까요?

shint의 이미지

...

유투브에 저작물은 개인 혹은 제작사에 소유물입니다.
개발해서 배포하시면. 문제가 커질 수 있습니다.

----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.

매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.

각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com

myotis17의 이미지

배포용은 아니고 개인수집용입니다.

ymir의 이미지

youtube API 로 뭔가 할 수 있을 것 같기는 한데.. 시간되시면 한 번 살펴 보시고..

그냥 간단히 youtube-dl 패키지 설치하고, playlist 긁어와서 비디오만 추출하고, 그대로 youtube-dl 로..

https://github.com/rg3/youtube-dl/blob/master/README.md

$ cat run.sh
#!/bin/bash
 
wget https ://www.youtube.com/playlist?list=PLFgquLnL59anNXuf1M87FT1O169Qt6-Lp -O playlist.html
if [ $? -eq 0 ] ; then
	cat playlist.html | grep -Po 'watch\?v=[^&]+' | uniq > vlist.txt
	while read -r video; do youtube-dl https ://www.youtube.com/$video; done < vlist.txt
fi
 
exit 0;

code 태그를 써도 url 이 href 로 자동 변환되어서 부득이하게 url 중간에 공백 하나 넣었습니다.

$ bash -x run.sh
+ wget 'https ://www.youtube.com/playlist?list=PLFgquLnL59anNXuf1M87FT1O169Qt6-Lp' -O playlist.html
--2015-12-28 14:38:18--  https ://www.youtube.com/playlist?list=PLFgquLnL59anNXuf1M87FT1O169Qt6-Lp
Resolving www .youtube.com (www .youtube.com)... 173.194.126.227, 173.194.126.232, 173.194.126.228, ...
Connecting to www .youtube.com (www .youtube.com)|173.194.126.227|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘playlist.html’
 
    [  <=>                                                                                                                                           ] 485,690     2.00MB/s   in 0.2s
 
2015-12-28 14:38:24 (2.00 MB/s) - ‘playlist.html’ saved [485690]
 
+ '[' 0 -eq 0 ']'
+ uniq
+ grep -Po 'watch\?v=[^&]+'
+ cat playlist.html
+ read -r video
+ youtube-dl 'https ://www.youtube.com/watch?v=QjZkpm7_kRk'
[youtube] QjZkpm7_kRk: Downloading webpage
[youtube] QjZkpm7_kRk: Downloading video info webpage
[youtube] QjZkpm7_kRk: Extracting video information
[youtube] QjZkpm7_kRk: Downloading DASH manifest
WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this.
[download] Destination: iKON - 덤앤더머(DUMB&DUMBER) M_V-QjZkpm7_kRk.mp4
[download] 100% of 90.04MiB in 00:10
+ read -r video
+ youtube-dl 'https ://www.youtube.com/watch?v=oIdNdZwg768'
[youtube] oIdNdZwg768: Downloading webpage
[youtube] oIdNdZwg768: Downloading video info webpage
[youtube] oIdNdZwg768: Extracting video information
[youtube] oIdNdZwg768: Downloading DASH manifest
WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this.
[download] Destination: [M_V] 숨바꼭질 (Hide and Seek) - 터보 (TURBO)-oIdNdZwg768.mp4
[download] 100% of 35.96MiB in 00:03
+ read -r video
+ youtube-dl 'https ://www.youtube.com/watch?v=FrG4TEcSuRg'
[youtube] FrG4TEcSuRg: Downloading webpage
^C
 
ERROR: Interrupted by user
Terminated
$
$ ls -al
drwxrwxr-x  3 ymir ymir     4096 12월 28 14:39 .
drwxr-xr-x 19 ymir ymir     4096 12월 28 14:38 ..
-rw-rw-r--  1 ymir ymir 94414850 12월 25 16:57 iKON - 덤앤더머(DUMB&DUMBER) M_V-QjZkpm7_kRk.mp4
-rw-rw-r--  1 ymir ymir   485690 12월 28 14:38 playlist.html
-rw-rw-r--  1 ymir ymir      297 12월 28 14:38 run.sh
-rw-rw-r--  1 ymir ymir     2000 12월 28 14:38 vlist.txt
-rw-rw-r--  1 ymir ymir 37711035 12월 24 19:31 [M_V] 숨바꼭질 (Hide and Seek) - 터보 (TURBO)-oIdNdZwg768.mp4

되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』

myotis17의 이미지

감사합니다

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.