From 02468ae7e500fdf56b4eab109e0bda6730c0cacd Mon Sep 17 00:00:00 2001 From: chodadoo Date: Fri, 6 Aug 2021 22:21:18 +0900 Subject: [PATCH] =?UTF-8?q?1.=20user-agent=20=EA=B0=92=20=EA=B5=90?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NaverSearcher/Form1.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NaverSearcher/Form1.cs b/NaverSearcher/Form1.cs index 41f91f3..8fe8d29 100644 --- a/NaverSearcher/Form1.cs +++ b/NaverSearcher/Form1.cs @@ -270,8 +270,8 @@ namespace NaverSearcher _ChromeOptions.AddArguments("--disable-popup-blocking"); _ChromeOptions.AddArguments("--disable-default-apps"); _ChromeOptions.AddArguments("--headless"); - _ChromeOptions.AddArguments("user - agent = Mozilla / 5.0(Macintosh; Intel Mac OS X 10_12_6) AppleWebKit / 537.36(KHTML, like Gecko) Chrome / 61.0.3163.100 Safari / 537.36"); - */ + _ChromeOptions.AddArguments("user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"); + */ _ChromeOptions.BinaryLocation = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\SmartSearch\\chrome.exe"; // 프록시 설정