๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Tried. Failed. Logged.
728x90

๐Ÿ‘จ๐Ÿผ‍๐Ÿ’ป๊ฐœ๋ฐœ/์…€๋ ˆ๋‹ˆ์›€38

์…€๋ ˆ๋‹ˆ์›€ - ํŒŒ์ด์ฌ ๋ด‡ ๊ฐ์ง€ ์šฐํšŒ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ(undetected-chromdriver) pypi https://pypi.org/project/undetected-chromedriver/ undetected-chromedriver ('Selenium.webdriver.Chrome replacement with compatiblity for Brave, and other Chromium based browsers.', 'Not triggered by CloudFlare/Imperva/hCaptcha and such.', 'NOTE: results may vary due to many factors. No guarantees are given, except for ongoing eff pypi.org ์„ค์น˜ pip install undetected-chromedriver ์‚ฌ์šฉ ์˜ˆ์‹œ import u.. 2023. 1. 29.
์…€๋ ˆ๋‹ˆ์›€ - ๋ธŒ๋ผ์šฐ์ € ์ฐฝ ์œ„์น˜ ์•ˆ๋ณด์ด๋Š” ๊ณณ์œผ๋กœ ์ด๋™ var options = new ChromeOptions(); options.AddArgument("--window-position=-32000,-32000"); var chromeDriverService = ChromeDriverService.CreateDefaultService(); chromeDriverService.HideCommandPromptWindow = true; driver = new ChromeDriver(chromeDriverService, options); 2022. 12. 19.
์…€๋ ˆ๋‹ˆ์›€ - ํฌ๋กœ๋ฏธ์›€ ์˜›๋‚  ๋ฒ„์ „๋“ค ๋‹ค์šด๋กœ๋“œ https://vikyd.github.io/download-chromium-history-version/#/ Chromium History Versions Download ↓ vikyd.github.io 2022. 12. 7.
์…€๋ ˆ๋‹ˆ์›€ - alert, confirm ์™„์ „ ์ฐจ๋‹จ ํ™•์žฅ ๋„๊ตฌ https://chrome.google.com/webstore/detail/alert-control/ofjjanaennfbgpccfpbghnmblpdblbef Alert Control Control browser alert windows. Block by default or on specific websites. chrome.google.com ๊ฐ€๋” alert์ด ๋œจ๋ฉด ์…€๋ ˆ๋‹ˆ์›€์ด ์•„์˜ˆ ์กฐ์ž‘์ด ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋Š”๋ฐ, ์ด ํ™•์žฅ ๋„๊ตฌ๋ฅผ ์„ค์น˜ํ•ด์ฃผ๋ฉด alert์ด ์•„์˜ˆ ๋‚˜์˜ค์ง€ ์•Š๋Š”๋‹ค. 2022. 11. 30.
์…€๋ ˆ๋‹ˆ์›€ - C#, ์‚ฌ์šฉ์ž์˜ ๊ธฐ์กด ํฌ๋กฌ ํ™˜๊ฒฝ ์กฐ์ž‘ํ•˜๊ธฐ "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 var options = new ChromeOptions(); options.DebuggerAddress = "127.0.0.1:9222"; IWebDriver driver = new ChromeDriver(options); ์ถœ์ฒ˜: https://stackoverflow.com/questions/67560832/use-selenium-to-attach-to-a-manually-opened-browser Use Selenium to attach to a manually opened Browser I know, that such a question.. 2022. 11. 16.
์…€๋ ˆ๋‹ˆ์›€ - ๋ชจ๋ฐ”์ผ ์—๋ฎฌ๋ ˆ์ด์…˜ ์˜ต์…˜ ์„ค์ •(ChromiumMobileEmulationDeviceSettings) private string ratio(String s) { string result = "360,640,3.0"; if (s.Contains("SM-N950N")) result = "1440,2960,3.5"; else if (s.Contains("SM-A920N")) result = "1440,2960,3.5"; else if (s.Contains("SM-A5035N")) result = "1440,2960,3.5"; else if (s.Contains("SM-G930N")) result = "1440,3040,3.5"; else if (s.Contains("SM-N960N")) result = "1080,2280,3.5"; else if (s.Contains("SM-A505N")) result = ".. 2022. 11. 15.
์…€๋ ˆ๋‹ˆ์›€ - C#, Select Option ์„ ํƒ Install-Package Selenium.Support // By Text (new SelectElement(driver.FindElement(By.XPath(""))).SelectByText(""); // By Value (new SelectElement(driver.FindElement(By.XPath(""))).SelectByValue(""); ์ถœ์ฒ˜: https://stackoverflow.com/questions/5278281/how-to-select-an-option-from-drop-down-using-selenium-webdriver-c How to select an option from drop down using Selenium WebDriver C#? I was trying for .. 2022. 10. 26.
์…€๋ ˆ๋‹ˆ์›€ - C#, ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ๊ฒฐ๊ณผ ๊ฐ€์ ธ์˜ค๊ธฐ // Number var newScrollHeight = (long) js.ExecuteScript("window.scrollTo(0, document.body.scrollHeight); return document.body.scrollHeight;"); // String string title = (string)js.ExecuteScript("return document.title"); ์ถœ์ฒ˜: https://stackoverflow.com/questions/18572651/selenium-scroll-down-a-growing-page Selenium - Scroll down a growing page I'm using Selenium with c#. Selenium usually can automat.. 2022. 10. 26.
์…€๋ ˆ๋‹ˆ์›€ - ์บก์ฑ  ์šฐํšŒ ๋ชจ๋“ˆ(Captcha-Impulse) https://pypi.org/project/Captcha-Impulse/ Captcha-Impulse hCaptcha bypass with yolov5 pypi.org ์„ค์น˜ pip install Captcha-Impulse Demo Available labels If the requested label is not in the trained model the library will reload the captcha until it find an available label. Name Status Airplane โœ… Seaplane โŒ Bus โœ… Boat โœ… Bridge โŒ Bicycle โœ… Car โœ… Chimneys โŒ Crosswalks โŒ Fire hydrants โœ… Mountain | Hill โŒ.. 2022. 10. 25.
์…€๋ ˆ๋‹ˆ์›€ - ์•ˆํ‹ฐ๋ด‡ ํ™•์ธ ์‚ฌ์ดํŠธ https://bot.sannysoft.com/ Antibot bot.sannysoft.com 2022. 10. 12.
์…€๋ ˆ๋‹ˆ์›€ - ํŠน์ • URL ์ฐจ๋‹จํ•˜๊ธฐ chromeOptions.AddArgument("--host-resolver-rules=MAP ssl.pstatic.net 127.0.0.1"); string strCmdText; strCmdText = "/C ipconfig /flushdns"; System.Diagnostics.Process.Start("CMD.exe", strCmdText); Thread.Sleep(3000); URL์˜ DNS๋ฅผ 127.0.0.1๋กœ ์„ค์ •ํ•ด์„œ ์ฐจ๋‹จํ•˜๋Š” ๋ฐฉ์‹์ด๋ผ ๋ฐ”๋กœ ์ ์šฉํ•˜๊ณ  ์‹ถ์œผ๋ฉด dns๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ๋ช…๋ น์–ด๋„ ํ•จ๊ป˜ ์จ์ค˜์•ผ ํ•จ ์ถœ์ฒ˜: ์…€๋ ˆ๋‹ˆ์›€ URL Blocking https://stackoverflow.com/questions/46891301/can-i-automate-chrome-request-blocking-usi.. 2022. 10. 11.
์…€๋ ˆ๋‹ˆ์›€ - navigator.userAgentData ๋ชจ๋ฐ”์ผ๋กœ ์œ„์žฅํ•˜๊ธฐ ์ฐธ๊ณ  https://economytrendstory.com/1174 ํฌ๋กฌ ์ž๋™ํ™” ํˆด selenium์€ ํƒ์ง€ํ•˜๋Š” ๋ฒ• 4๊ฐ€์ง€ selenium์€ ํƒ์ง€๊ฐ€ ๋ถˆ๊ฐ€๋Šฅ ํ• ๊นŒ์š”?์–ด๋–ค ๋ฐฉ์‹์œผ๋กœ ์…€๋ ˆ๋‹ˆ์›€์„ ํƒ์ง€ ํ•  ์ˆ˜ ์žˆ์„์ง€ ํ™•์ธํ•ด๋ณด์•˜์Šต๋‹ˆ๋‹ค. navigator.webdriver ํ™•์ธClient hints, navigator.userAgentData ํ™•์ธchromedriver ํƒ์ง€๋ธŒ๋ผ์šฐ์ € ์ง€๋ฌธ(browser fingerprin economytrendstory.com ๋ฐฉ๋ฒ• 1. ๊ฐœ๋ฐœ์ž ๋„๊ตฌ(F12)์—์„œ "๊ธฐ๊ธฐ ํˆด๋ฐ” ์ „ํ™˜" ์‚ฌ์šฉ ์œ„์˜ ๊ธ€์„ ๋ณด๋ฉด navigator.userAgentData์•ˆ์— ์žˆ๋Š” mobile, platform ๊ฐ™์€ ๊ฐ’์„ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒŒ ํž˜๋“ค๋‹ค๊ณ  ์–ธ๊ธ‰์„ ํ•˜๋Š”๋ฐ ์˜์™ธ๋กœ ์šฐํšŒํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ๊ฐ„๋‹จํ•˜๋‹ค. (๊ธฐ์กด์—๋Š” mobile=.. 2022. 10. 11.
728x90