강의

멘토링

커뮤니티

Inflearn Community Q&A

ilman124591031's profile image
ilman124591031

asked

Introduction to Python and Creating Various Automated Applications Using Web Crawling

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

확실히 실습은 강의듣는거와 다르게 질문사항이 많네요

Written on

·

212

0

import sys
import io
import urllib.request

sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding ='utf-8')
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding ='utf-8')

imgUrl = "src= http://img.hani.co.kr/imgdb/resize/2018/0320/00503004_20180320.JPG"
savePath = "c:/test1.jpg"

print("다운로드완료!")

            • 다운완료는 프린트가 되는데 파일이 저장되지않습니다

또한가지 아톰프롬프트 섹션2 설정안된다고 전에 질문올렸는데 그래서 제가 아톰들어가서 섹션2 폴더에서 다운로드2.2파이 파일을 만들고 싶은데

문제는 전에 만든 장고파일에서 프로젝트가 열리는데 .... 제가 오픈폴더로 c:드라이브 섹션2 잡아도 프로젝트가 장고로만 나와서 결국 실습을 장고폴더내에서 download2-2.py 만들었는데 동영상처럼 섹션2 폴더내로 갈수있는 방법있나요

python웹-크롤링

Answer

This question is waiting for answers
Be the first to answer!
ilman124591031's profile image
ilman124591031

asked

Ask a question