크롤링 시 브라우저 헤더를 선언해줌

This commit is contained in:
2025-07-29 15:55:15 +09:00
parent c41bf82e58
commit 4e22744adf

View File

@ -96,6 +96,8 @@ def main():
"download.prompt_for_download": False,
"safebrowsing.enabled": True
})
options.add_argument('user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36')
driver = webdriver.Chrome(options=chrome_options)
try: