URL = "주소" headers = { 'Host': 'm.search.naver.com', 'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7', 'Cookie': 'npic=kJeFBc46eB3SYIPI718hy22GYvwDUqllFZ07jD+YnDeIiZlzpDVKIEEK9HqxTtu2CA==; ASID=d270c2f1000001638c1638470000004f; nx_open_so=1; _ga=GA1.2.2134578726.1541994883; nx_ssl=2; page_uid=UudovspySAdssuEO1eGssssssJC-512286; _naver_usersession_=A/ZPVy5KPH65x3wRv2fdQA==; BMR=' } res = requests.get(URL, headers=headers) soup = BeautifulSoup(res.text, 'lxml')
최근 댓글