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

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

View File

@ -97,6 +97,8 @@ def main():
"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:
login(driver, config)