python/crawling
beautiful soup 크롤링 안될때
thomass
2021. 8. 11. 11:21
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'}
res = requests.get(url,headers=headers)
요렇게 헤더를 넣는다
반응형