py/requests

html 소스를 가져오자

호성동쎕쎕이 2020. 9. 21. 10:20
import requests

req = requests.get('가져올 http 주소')

html = req.text

print(html)

일단 리퀘스트 불러오고

다음엔 가져올 http 주소를 가져오고

http를 텍스트로 변환

출력