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

๐Ÿ‘จ๐Ÿผ‍๐Ÿ’ป๊ฐœ๋ฐœ158

์…€๋ ˆ๋‹ˆ์›€ - 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.
PyQt - ํ…Œ์ด๋ธ” ํ—ค๋” ๋ฐฐ๊ฒฝ ์ƒ‰ ๋ณ€๊ฒฝ self.table_invest = QtWidgets.QTableWidget(self.tab) self.table_invest.setStyleSheet('QTableWidget{\ncolor:black;}\nQHeaderView::section{background-color: rgb(23,33,43); };') ์ฐธ๊ณ : https://forum.qt.io/topic/87371/how-to-change-qtablewidget-header-color-and-selection-color 2022. 11. 8.
์…€๋ ˆ๋‹ˆ์›€ - 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.
C# - textBox PlaceHolder ๊ตฌํ˜„ https://www.youtube.com/watch?v=VFeYyC_4It0 private void textBox_naverid_Enter(object sender, EventArgs e) { if( textBox_naverid.Text == "์•„์ด๋””") { textBox_naverid.Text = ""; textBox_naverid.ForeColor = Color.Black; } } private void textBox_naverpw_Enter(object sender, EventArgs e) { if (textBox_naverpw.Text == "๋น„๋ฐ€๋ฒˆํ˜ธ") { textBox_naverpw.Text = ""; textBox_naverpw.PasswordChar = 'โ—'; textBox_naverp.. 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.
C# - ๋ฉ€ํ‹ฐ์Šค๋ ˆ๋“œ์—์„œ ํด๋ฆฝ๋ณด๋“œ ๊ธฐ๋Šฅ(OLE) ์‚ฌ์šฉํ•˜๊ธฐ // ๋ฉ€ํ‹ฐ์Šค๋ ˆ๋“œ ํ•จ์ˆ˜ ์„ ์–ธ mainThread = new Thread(work); mainThread.SetApartmentState(ApartmentState.STA); mainThread.Start(); // ๋ฉ€ํ‹ฐ์Šค๋ ˆ๋“œ ํ•จ์ˆ˜ ๋‚ด๋ถ€ Clipboard.SetText("ํ…Œ์ŠคํŠธ"); ์ถœ์ฒ˜: https://taeminimini.tistory.com/m/437 Thread ๋‚ด ์—์„œ OLE ํ˜ธ์ถœ์‹œ STAThreadAttribute C# Thread ํ•˜๋‹ค๋ณด๋‹ˆ ๋งŒ๋“ค์–ด๋†“์€ ์“ฐ๋ ˆ๋“œ์— Clipboard๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•˜๋‹ˆ ์•„๋ž˜์™€ ๊ฐ™์ด ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ๐Ÿ˜ฅ System.Threading.ThreadStateException: 'OLE ํ˜ธ์ถœ์„ ์ˆ˜ํ–‰ํ•˜๋ ค๋ฉด ํ˜„์žฌ ์Šค๋ ˆ๋“œ๋ฅผ STA(๋‹จ์ผ ์Šค๋ ˆ๋“œ ์•„ํŒŒํŠธ) taeminimini.tisto.. 2022. 10. 19.
C# - ๋ชจ๋˜ UI ํ”„๋ ˆ์ž„์›Œํฌ(MahApps.Metro) https://mahapps.com/ MahApps.Metro - Home Enhance the default controls MahApps.Metro overrides the default style of all common WPF controls and gives them a modern look. More than just styles MahApps.Metro also includes some custom controls based on concepts from Windows Phone, Windows 8 and Windo mahapps.com https://luckygg.tistory.com/302 [.Net] C# WinForm์—์„œ Metro UI(Modern UI) Framework ์ ์šฉํ•˜๊ธฐ(.. 2022. 10. 13.
puppeteer - Hairline Feature ์šฐํšŒ await page.evaluateOnNewDocument(() => { Object.defineProperty(HTMLDivElement.prototype, 'offsetHeight', { get: function() { if (this.id === 'modernizr') { return 1; } return elementDescriptor.get.apply(this); }, }); }); ์ถœ์ฒ˜: https://intoli.com/blog/making-chrome-headless-undetectable/ Making Chrome Headless Undetectable Using MitmProxy and injected JavaScript feature mocks to bypass Headless Chr.. 2022. 10. 13.
puppeteer - Language, Languages ์ˆ˜์ • await page.evaluateOnNewDocument(() => { Object.defineProperty(navigator, "language", { get: function() { return "en-GB"; } }); Object.defineProperty(navigator, "languages", { get: function() { return ["en-GB", "en"]; } }); }); ์ถœ์ฒ˜: https://stackoverflow.com/questions/46908636/how-to-specify-browser-language-in-puppeteer How to specify browser language in Puppeteer I would like to launch a Google.. 2022. 10. 13.
puppeteer - ์•ˆํ‹ฐ๋ด‡ ๊ฐ์ง€๋ฅผ ํ”ผํ•˜๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ (puppeteer_stealth) pyppeteer_stealth ๊นƒํ—ˆ๋ธŒ(ํŒŒ์ด์ฌ) https://github.com/MeiK2333/pyppeteer_stealth GitHub - MeiK2333/pyppeteer_stealth Contribute to MeiK2333/pyppeteer_stealth development by creating an account on GitHub. github.com puppeteer_stealth npm(node.js) https://www.npmjs.com/package/puppeteer-extra-plugin-stealth puppeteer-extra-plugin-stealth Stealth mode: Applies various techniques to make detection of headle.. 2022. 10. 12.
728x90