import requests
def get_html(url):
_html = ""
resp = requests.get(url)
if resp.status_code == 200:
_html = resp.text
return _html
URL = "https://gall.dcinside.com/mgallery/board/lists?id=aoegame"
html = get_html(URL)
print(html)
여기까지만 하고 확인해보려고
print(html) 했는데 아무것도 없음
그래서 코드 문제인가 싶어서, naver로 해봤는데 그건 또 잘 크롤링 됨 ㅅㅂ
머가 문제임?
resp.status_code가 200이 아닌가보지
아 내가 설명을 제대로 안했네, status_code는 200 제대로 나오는데 .text에 내용물이 아무것도 없음
귀엽네 ㅋㅋ
커엽다고 하지말고 알려줘 뭐가 문제임
https://blog.naver.com/kiddwannabe/221185808375
찾았다 자문자답
유저 에이전트는 기본으로 깔고가는거