인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

kyueihan5904's profile image
kyueihan5904

asked

Introduction to Python and Creating Various Automated Applications Using Web Crawling

Extracting necessary data from the web using Python urllib (1)

동영상 다운로드/저장은 되지만 실행이 안됩니다

Written on

·

375

0

import sys
import io
import urllib.request as dw
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
video_urlUrl1 = "https://siape.veta.naver.com/fxclick?eu=EU10041892&calp=-&oj=ZagUyei1lSi%2F0EctvH49U4dz9xrWJgTpJvO0YDtEEeZOKD7Lu1OcGHsQ2wwpuoplbH%2BFwbTnjCe1hOufgniLaUffm6UEf45fQa%2B%2F8JCEQ8tbSBKku4jsSg&ac=8270576&src=4896286&br=3409694&evtcd=P901&x_ti=1316&tb=&oid=&sid1=&sid2=&rk=530eef8c6a3d7ba1097b32fa6a640fca&eltts=dDPjS9kyVsS%2FAbAa1O9bhQ%3D%3D&lu=&brs=Y&"
#htmlURL = "http://google.com" #한글
savePath1 = "/Users/devsisters/Desktop/homework.mpeg4"
f1 = dw.urlopen(video_urlUrl1).read()
with open(savePath1,'wb') as saveFile1:
    saveFile1.write(f1)
print("다운로드 완료!")
웹-크롤링python

Answer 1

2

niceman님의 프로필 이미지
niceman
Instructor

안녕하세요. 저도 특정동영상이 실행이 안되는 경우가 있더라구요!

다른 영상을 다운받아서 확인해보세요!

kyueihan5904's profile image
kyueihan5904

asked

Ask a question