etc/web crawling1 urlopen과 urlretrieve 2023.06.09 1. urlretrieve 1-1. What is urlretreive? urlretrieve함수는 URL을 통해 파일을 다운로드 받을 때 쓰는 함수이다. 필수 인자는 하나이고, 다운로드 받고싶은 파일의 url이다. 리턴값은 카피된 로컬 파일의 이름(경로)와 헤더, 두 개로 구성된 튜플이다. 헤더는 urlOpen.info()를 사용했을 때의 리턴값과 같다. urlretrieve is a function that allows users to download a nextwork object, denoted by a URL, into a local file. The required argument is the url. It returns a tuple that has a filename t.. 2023. 6. 9. 이전 1 다음