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. ์ด์ 1 2 3 4 5 ยทยทยท 14 ๋ค์ 728x90