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

๐Ÿ‘จ๐Ÿผโ€๐Ÿ’ป๊ฐœ๋ฐœ158

์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค - ์›น๋ทฐ(WebView) ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์กฐ์ž‘ private Boolean isLoadingFinished = false; ... WebView webView = findViewById(R.id.webView); webView.setWebViewClient(new WebViewClient(){ @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); Toast.makeText(getApplicationContext(), "ํŽ˜์ด์ง€ ๋กœ๋“œ ์ค‘...", Toast.LENGTH_LONG).show(); isLoadingFinished = false; } @Override public void onPag.. 2023. 8. 23.
Tkinter - CustomTkinter, pyinstaller ๋นŒ๋“œ ํ›„ blue.json ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• pyinstaller -F --collect-all customtkinter -w --collect-all customtkinter ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•œ๋‹ค. ์ถœ์ฒ˜: https://stackoverflow.com/questions/75872305/how-to-get-the-correct-path-to-a-json-file-from-the-customtkinter-module How to get the correct path to a json file from the customtkinter module I made my GUI using customtkinter. I used auto-py-to-exe to make it an file. The exe file doesn't open because of an th.. 2023. 8. 13.
Tkinter - ํ˜„๋Œ€์ ์ธ UI ๋””์ž์ธ CustomTkinter CustomTkinter ์„ค์น˜ ๋ช…๋ น์–ด pip install customtkinterโ€‹ ๊นƒํ—ˆ๋ธŒ ์ฃผ์†Œ https://github.com/TomSchimansky/CustomTkinter GitHub - TomSchimansky/CustomTkinter: A modern and customizable python UI-library based on Tkinter A modern and customizable python UI-library based on Tkinter - GitHub - TomSchimansky/CustomTkinter: A modern and customizable python UI-library based on Tkinter github.com CustomTkinter ๊ณต์‹ ์‚ฌ์ดํŠธ(Doc.. 2023. 8. 13.
ํŒŒ์ด์ฌ - ํ…”๋ ˆ๊ทธ๋žจ API ์‚ฌ์šฉ์ž ์•„์ด๋”” ๋ฐ ์ •๋ณด ๊ฐ€์ ธ์˜ค๊ธฐ https://api.telegram.org/bot{bot_api_key}/getUpdates {"ok":true,"result":[{"update_id":000000000, "message":{"message_id":00,"from":{ "id":0000000000, "is_bot":false, "first_name":"ABC", "username":"ABC", "language_code":"ko"},.. 2023. 8. 1.
ํŒŒ์ด์ฌ - ์Šคํฌ๋ฆฝํŠธ ํŒŒ์ผ ์‹คํ–‰ ๋„์ค‘ ์ธํ„ฐ๋ž™ํ‹ฐ๋ธŒ ๋ชจ๋“œ๋กœ ์ „ํ™˜ํ•˜๊ธฐ import code def interactive_function(): # ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ์ค‘๊ฐ„์— ์ธํ„ฐ๋ž™ํ‹ฐ๋ธŒ ๋ชจ๋“œ๋กœ ์ „ํ™˜ console = code.InteractiveConsole(locals=globals()) console.interact("์ธํ„ฐ๋ž™ํ‹ฐ๋ธŒ ๋ชจ๋“œ๋กœ ์ „ํ™˜ํ•ฉ๋‹ˆ๋‹ค.") print("์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ์ค‘...") # ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ๋กœ์ง # ์ค‘๊ฐ„์— ์ธํ„ฐ๋ž™ํ‹ฐ๋ธŒ ๋ชจ๋“œ๋กœ ์ „ํ™˜ interactive_function() 2023. 7. 29.
์…€๋ ˆ๋‹ˆ์›€ - ํŠน์ • ํƒœ๊ทธ ๋ฒ”์œ„ ํ‘œ์‹œํ•˜๊ธฐ driver.execute_script("arguments[0].style.border='2px solid red';", elem) # ํƒœ๊ทธ ๋ฒ”์œ„ ํ‘œ์‹œ 2023. 7. 29.
์…€๋ ˆ๋‹ˆ์›€ - ์•„์ง ์•ˆ์˜ฌ๋ผ์˜จ ํฌ๋กฌ๋“œ๋ผ์ด๋ธŒ ์ตœ์‹  ๋ฒ„์ „ ์„ค์น˜ํ•˜๊ธฐ https://googlechromelabs.github.io/chrome-for-testing/ Chrome for Testing availability This page lists the latest available cross-platform Chrome for Testing versions and assets per Chrome release channel. Consult our JSON API endpoints if youโ€™re looking to build automated scripts based on Chrome for Testing release data. Last updated @ 20 googlechromelabs.github.io 2023. 7. 28.
์…€๋ ˆ๋‹ˆ์›€ - html ์„œ์‹๋„ ํฌํ•จํ•ด์„œ ํ…์ŠคํŠธ ๋ณต์‚ฌํ•˜๊ธฐ(klembord) example.py import time import klembord from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains options = Options() options.add_argument("--headless") options.add_argument("--disable-gpu") options.add_argument("--no-sandbox") options.add_argument("--disable.. 2023. 7. 23.
์…€๋ ˆ๋‹ˆ์›€ - ํฌ๋กฌ ๋‹ค์šด๊ทธ๋ ˆ์ด๋“œ ๋งŒ์•ฝ ํฌ๋กฌ๋“œ๋ผ์ด๋ธŒ๊ฐ€ ํ˜„์žฌ ์ปดํ“จํ„ฐ์— ์„ค์น˜๋œ ์ตœ์‹  ๋ฒ„์ „(chrome://version์—์„œ ํ™•์ธ ๊ฐ€๋Šฅ)์„ ์ง€์›ํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ ๊ธฐ์กด ํฌ๋กฌ์„ ์‚ญ์ œํ•ด์„œ ๋‚ฎ์€ ๋ฒ„์ „์œผ๋กœ ์„ค์น˜ํ•˜๋Š” ๋‹ค์šด๊ทธ๋ ˆ์ด๋“œ๊ฐ€ ํ•„์š”ํ•จ ํฌ๋กฌ ๋ฒ„์ „๋ณ„ ๋‹ค์šด๋กœ๋“œ ๋ชจ์Œ ์‚ฌ์ดํŠธ(uptodown) https://google-chrome.en.uptodown.com/windows/versions Older versions of Google Chrome (Windows) | Uptodown exe 115.0.5790.99 Jul 19, 2023 exe 114.0.5735.199 Jun 28, 2023 zip 114.0.5735.134 Jun 16, 2023 zip 114.0.5735.106 Jun 7, 2023 exe 113.0.5672.127 May 29, 2023.. 2023. 7. 22.
ํŒŒ์ด์ฌ - ๋กœ๋”ฉ๋ฐ”(Progress Bar) ๊ตฌํ˜„ ๋ชจ๋“ˆ(tqdm) ๋ชจ๋“ˆ ์„ค์น˜ pip install tqdm ์‚ฌ์šฉ ์˜ˆ์‹œ from time import sleep from tqdm import tqdm for i in tqdm(range(10)): sleep(1) ์ถœ์ฒ˜: https://stackoverflow.com/questions/3160699/python-progress-bar Python Progress Bar How do I use a progress bar when my script is doing some task that is likely to take time? For example, a function which takes some time to complete and returns True when done. How can I display a stac.. 2023. 7. 17.
ํŒŒ์ด์ฌ - PyAutoGUI๊ฐ€ ์•ˆ๋  ๊ฒฝ์šฐ ๋Œ€์ฒด ๊ฐ€๋Šฅํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ(PyDirectInput) ๊ธฐ๋ณธ PyAutoGUI๋Š” ๊ฐ€์ƒ ํ‚ค(VK)์™€ mouse_event() ๋ฐ keybd_event() win32 ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š”๋ฐ ์ด๋Š” ์ผ๋ถ€ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ๋“ค, ๋น„๋””์˜ค ๊ฒŒ์ž„์ด๋‚˜ DirectX์— ์ง€์›ํ•˜์ง€ ์•Š์•„ ์ œ๋Œ€๋กœ ์ž‘๋™ํ•˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ๋‹ค. ๊ทธ๋ž˜์„œ PyDirectInput ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” DirectInput ์Šค์บ” ์ฝ”๋“œ์™€ SendInput() win32 ๊ฐ™์€ ์ตœ์‹  ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•ด ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ๋‹ค. PyPi - PyDirectInput https://pypi.org/project/PyDirectInput/ PyDirectInput Python mouse and keyboard input automation for Windows using Direct Input. pypi.org ์ฝ”๋“œ ์˜ˆ์ œ >>> impo.. 2023. 7. 15.
์…€๋ ˆ๋‹ˆ์›€ - xpath ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ ํด๋ฆญํ•˜๊ธฐ (javascript error: $x is not defined) ๋ฐฉ๋ฒ• 1. marketplace_button = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, '//span[contains(text(), "Marketplace")]'))) marketplace_button.click() ๋ฐฉ๋ฒ• 2. marketplace_button = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, '//span[contains(text(), "Marketplace")]'))) driver.execute_script("arguments[0].click();", marketplace_button) ์ถœ์ฒ˜: https://stackove.. 2023. 6. 11.
728x90