πνλ‘κ·Έλλ°
2022.07.01
# Uses the COM Task Scheduler Interface to create a task # scheduled to execute when the current user logs on. import win32com.client import os computer_name = "" #leave all blank for current computer, current user computer_username = "" computer_userdomain = "" computer_password = "" action_id = "Test Task" #arbitrary action ID action_path = r"c:\windows\system32\calc.exe" #executable path (cou..
πνλ‘κ·Έλλ°
2022.06.29
μμ© νλ‘κ·Έλ¨ProgID Microsoft Access Access.Application Microsoft Excel Excel.Application Microsoft Outlook Outlook.Application Microsoft PowerPoint Powerpoint.Application Microsoft Word Word.Application Microsoft FrontPage FrontPage.Application import datetime import win32com.client scheduler = win32com.client.Dispatch('Schedule.Service') scheduler.Connect() root_folder = scheduler.GetFolder('\\') ta..
πνλ‘κ·Έλλ°
2022.06.29
https://sucrearn.tistory.com/3 Pyinstallerλ‘ λ§λ νλ‘κ·Έλ¨ μλ μ
λ°μ΄νΈ μ μ©κΈ° μ΅κ·Ό νμ¬μμ νμ΄μ¬μ μ΄μ©ν μ루μ
κ°λ°μ μμνκ² λλ€. ν΄λΉ μ루μ
κ°λ°μ λͺκ°μ§ μ‘°κ±΄μ΄ μμλλ°, ν¬κ² λ€μ λκ°μ§κ° κ°μ₯ μ€μνλ€. νμ΄μ¬μΌλ‘ κ°λ°νκ³ , λ
립μ€νμ΄ κ°λ₯ν κ² μ¬ sucrearn.tistory.com
πνλ‘κ·Έλλ°
2022.06.29
νμΌμ μΈμ½λ©μ utf-8λ‘ λ³ννλ ν¨μμ΄λ€. chardet ν¨μΉν€ μ€μΉκ° νμνλ€ import chardet # ν¨ν€μ§ μ€μΉ νμ # file_path -> Encoding Type def is_encoded(file_path: str): rawdata = open(file_path, mode='rb').read() data = chardet.detect(rawdata) result = data['encoding'] return result # File_path, Encoding_Type -> Change Files encoding type def to_utf8(file_path: str, encoding_in: str): try: with open(file_path, 'r', encoding=enc..
πνλ‘κ·Έλλ°
2022.06.10
ν¬λ‘€λ§ μ User-Agent λ° Cookieλ₯Ό μ€μ νλ€. λ§νκ² λλ©΄ Cookie κ°μ κ°±μ ν΄μ£Όμ headers = {'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36", 'Cookie': 'GSP=A=7_cV4w:CPTS=1654785473:LM=1654785473:S=n9a7P7syvEx3nONo; NID=511=MyGhFfwN2Y_7VS3Uf5iH34nuwysQS2BKgP5rIg3unnXniEC0D96W480QTrgX5u0ZpK85OrRfTt4-qvX_gcM11bpdbxPN0ApykvA3t_PBg14yAx0QrRhv..
πνλ‘κ·Έλλ°
2022.06.09
Python Functions: Advanced Concepts • Python Land Tutorial Python Functions: Advanced Concepts Do you know all about Python functions? These advanced functions concepts will surely teach you something new and help you improve your code. python.land https://wikidocs.net/109303 029 μμλλ‘ μ’νλ₯Ό μ λ ¬νλ €λ©΄? β functools.cmp_to_key functools.cmp_to_key(func)λ sorted()μ κ°μ μ λ ¬ ν¨μμ key 맀κ°λ³μμ ν¨μ(func)λ₯Ό μ λ¬ν λ μ¬μ©νλ..
πνλ‘κ·Έλλ°
2022.06.03
https://victorydntmd.tistory.com/313 [Elasticsearch] μ
λ¬ΈνκΈ°(3) - λ€μν κ²μ λ°©λ² ( Search API ) ESλ κ²μ μμ§μΈ λ§νΌ λ€μν κ²μ APIλ₯Ό μ 곡νλ©°, μ΄λ₯Ό μ μμμΌ ESλ₯Ό ν¨κ³Όμ μΌλ‘ μ¬μ©ν μ μμ κ²μ΄λΌ μκ°ν©λλ€. μ΄λ² κΈμμλ Search APIμ λν΄ μμλ³΄κ² μ΅λλ€. λ€μ κΈ Query DSLμ λ€λ£¨κΈ° victorydntmd.tistory.com http://labs.brandi.co.kr/2021/07/08/leekh.html AWS Elasticsearch + Pythonμ νμ©ν 'κ²μ' λμ κΈ° Overview labs.brandi.co.kr https://db-engines.com/en/ranking/search+engine..
πνλ‘κ·Έλλ°
2022.06.02
νμ΄μ¬ ν¬λ‘€λ§μ λ λΉ λ₯΄κ² μννλ λͺ κ°μ§ λ°©λ²μ μ μν΄ λλ¦¬κ² μ΅λλ€. λΉλκΈ° μ²λ¦¬(Asynchronous Processing) μ¬μ©: λΉλκΈ° μ²λ¦¬λ μ½λλ₯Ό μ€ννλ λμ λ€λ₯Έ μ½λ μ€νμ μ€λ¨νμ§ μκ³ λ λ³λ ¬λ‘ μμ
μ μ²λ¦¬ν μ μλλ‘ νλ κΈ°μ μ
λλ€. λΉλκΈ° μ²λ¦¬λ₯Ό μ¬μ©νλ©΄ λ λΉ λ₯΄κ² μΉ μ¬μ΄νΈμμ λ°μ΄ν°λ₯Ό κ°μ Έμ¬ μ μμ΅λλ€. μλ₯Ό λ€μ΄, asyncioμ aiohttp λͺ¨λμ μ¬μ©νμ¬ λΉλκΈ° HTTP μμ²μ μ²λ¦¬ν μ μμ΅λλ€. λ©ν°μ€λ λ© λλ λ©ν°νλ‘μΈμ± μ¬μ©: λ©ν°μ€λ λ© λλ λ©ν°νλ‘μΈμ±μ μ¬μ©νμ¬ CPU λ° I/O λ°μ΄λ μμ
μ λ³λ ¬λ‘ μ²λ¦¬ν μ μμ΅λλ€. CPU λ°μ΄λ μμ
μ κ³μ° μ§μ½μ μμ
μΌλ‘μ, λ©ν°νλ‘μΈμ±μ μ¬μ©νμ¬ μ²λ¦¬ν μ μμ΅λλ€. I/O λ°μ΄λ μμ
μ λ€νΈμν¬ λλ λμ€ν¬ I..
πνλ‘κ·Έλλ°
2022.05.26
νμ΄μ¬μΌλ‘ Process List, PID μ Process Kill (tistory.com) νμ΄μ¬μΌλ‘ Process List, PID μ Process Kill νΉμ μ
μ±μ½λλ μμ μ μ
μ±νμλ₯Ό νκΈ° μν΄ νμ¬ μμ€ν
μ νλ‘μΈμ€μ 리μ€νΈλ₯Ό μ»μ΄μ€κ³ , μ’
λ£νκΈ°λ₯Ό νκΈ°λ₯Ό νλ€. μλ₯Ό λ€μ΄ AVνλ‘κ·Έλ¨μ μ°Ύκ±°λ μ
μ±νμμ μ’
μμ±μ κ°μ§ νλ‘μΈμ€λ₯Ό c0mb.tistory.com