Python urllib.request.urlopen().read()

사용 버전 : Python 3.6.8

사용 프로그램 : Atom 1.35.1 x64


파이썬 urllib.request.urlopen().read()에 대해서 알아보겠습니다.


괄호 안에는 숫자가 들어갑니다.


urllib.request.urlopen().read()는 연결된 웹 페이지의 HTML을 읽습니다.


괄호 안에 숫자를 적지 않으면, 전체 데이터를 읽습니다.




숫자는 읽을 데이터양을 정해줍니다.




open().read()와 유사합니다.




끝.


카테고리: Python, urllib

댓글

이 블로그의 인기 게시물

Python urllib.parse.quote()

KiCad 시작하기 7 (FreeRoute 사용하기 2)

음악 총보(Score), 파트보(Part)

Forensics .pyc 파일 .py로 복구하기

KiCad 시작하기 3 (새로운 소자 추가하기)

Kivy 시작하기 12 (Pyinstaller로 exe 파일 만들기)

딩기 요트 명칭

Android Compose automation for getting localized images to use on Play Store app image

Android Default background color setting

Android App architecture: State holders and UI state