PYTHON

파이썬 강의 노트 1 – 나도코딩

    파이썬 프로그램을 .exe 실행 파일로 만드는 방법 (PyInstaller)       1. 파이썬 프로그램을 .exe 실행 파일로 만드는 방법 (PyInstaller)   https://www.youtube.com/watch?v=Es1fQqqxIFQ   # pyinstaller 설치 pip install pyinstaller   # pyinstaller add folder with images in exe file https://stackoverflow.com/questions/51264169/pyinstaller-add-folder-with-images-in-exe-file   # 상대경로를 받아서 절대경로를 반환 import os def resource_path(relative_path): try: base_path = sys._MEIPASS except Exception: base_path = os.path.abspath(“.”) return os.path.join(base_path, relative_path)   # 그림 파일을 절대 경로로 지정해야한다. resource_path(“gui_basic\img.png”)   # 와일드 카드로 한번에 그림 파일을 지정 pyinstaller -w –add-data ‘.\gui_basic\*.png;gui_basic’ -F .\gui_basic\3_label.py   # 그림 파일을…

Read More
PYTHON

파이썬 강좌 – 김플 스튜디오

  파이썬 크롤링 예제 네이버 이미지 검색결과 한번에 다운로드 프로그램 파이썬 selenium 셀레니움 새탭 열고 닫는 방법 파이썬 반복문에서 사용하고 있는 리스트를 반복 중간에 변경하면 어떻게 될까요? vscode 사용법, 단축키 / 비주얼 스튜디오 코드 파이썬 인스타그램 크롤링 이미지 다운로드 beautifulsoup selenium 사용법 파이썬 자동화 selenium 사용법 브라우저 매크로 프로그램 만들기 파이썬 자동화 셀레니움(selenium) webdriver와 actionchains으로 웹사이트 매크로 제작 파이썬 selenium 셀레니움 팝업창 닫는 방법 파이썬 여러페이지 크롤링 네이버 블로그 검색결과 웹스크래핑 파이썬 크롤링 csv 파일저장 방법 네이버 모바일 검색결과 웹스크래핑 파이썬 강의 텍스트 파일 open 읽기 쓰기 추가하기 w, r,…

Read More
PYTHON

파이썬 라이브러리

  tesseract pyautogui pyinstaller csv selenium       1. tesseract   # tesseract (github) https://github.com/tesseract-ocr   # 파이썬 Python 코딩 – tesseract OCR 이미지에서 텍스트 추출 https://www.youtube.com/watch?v=rNxMwtottmM   # Tesseract로 OCR 하기 (joyhong tistory) https://joyhong.tistory.com/79   # 윈도우용 tesseract 설치 파일 다운로드 https://github.com/UB-Mannheim/tesseract/wiki – 설치 할 때 Additional language data 에서 Korean 체크   # 더 나은 샘플 데이터 2개 받기 https://github.com/tesseract-ocr/tessdata – kor.traineddata, kor_vert.traineddata – C:\Program Files\Tesseract-OCR\tessdata 폴더에 복사   # 파이썬 pytesseract 설치 pip install pytesseract   # 파이썬 pillow 설치 pip install pillow   from PIL import…

Read More
PYTHON

파이썬 도움되는 정보 1

    recursive iteration through nested json for specific key in python How to prettyprint a JSON file? 파이썬 패키지 백업 및 복구 selenium wait Python Selenium: wait until an element is no longer stale? Python Selenium: How to let human interaction in a automated script? Open web in new tab Selenium + Python 주피터 노트북 설치 (방구석 잡코딩) 셀레늄으로 네이버 로그인하기 (방구석 잡코딩)      1. recursive iteration through nested json for specific key in python   https://stackoverflow.com/questions/21028979/recursive-iteration-through-nested-json-for-specific-key-in-python   def item_generator(json_input, lookup_key): if isinstance(json_input, dict): for k, v in…

Read More
PYTHON

파이썬 GUI 프로그래밍 (여러 이미지 합치기 프로그램) 2 – 나도코딩

    파이썬 코딩 무료 강의 (활용편2) – GUI 프로그래밍을 배우고 ‘여러 이미지 합치기’ 프로그램 [나도코딩] (youtube.com) https://www.youtube.com/watch?v=bKPIcoou9N8   [나도코딩] 파이썬 활용편2 GUI 프로그래밍 – 소개 https://nadocoding.tistory.com/9   gui_project.zip gui_basic.zip   1_create_layout.py 2_basic_function.py 3_auto_screenshot.py 4_merge_images.py 5_apply_options.py 6_advanced_screenshot.py      1. 1_create_layout.py   import tkinter.ttk as ttk from tkinter import * root = Tk() root.title(“Nado GUI”) # 파일 프레임 (파일 추가, 선택 삭제) file_frame = Frame(root) file_frame.pack(fill=”x”, padx=5, pady=5) # 간격 띄우기 btn_add_file = Button(file_frame, padx=5, pady=5, width=12, text=”파일추가”) btn_add_file.pack(side=”left”) btn_del_file = Button(file_frame, padx=5, pady=5, width=12, text=”선택삭제”) btn_del_file.pack(side=”right”) # 리스트 프레임…

Read More
PYTHON

파이썬 셀레니움 이미지 크롤링 – 조코딩

# 파이썬 셀레니움 이미지 크롤링으로 배우는 업무 자동화의 기초 (youtube.com) https://www.youtube.com/watch?v=1b7pXC1-IbE   # 소스 코드 (github.com) https://github.com/youtube-jocoding/python-selenium-google-image-crawling/blob/master/google.py   Selenium 설치 및 브라우저 세팅 구글 이미지 크롤링 코드 작성 셀레니움 네이버 실시간 검색어 크롤링 방법 소개      1. 파이썬 가상 환경 세팅   1. 구글에서 검색 : python venv 가상 환경 https://docs.python.org/ko/3/library/venv.html   2. 터미널을 열고 실행 python -m venv selenium  // selenium 이라는 이름의 가상 환경을 만듦 cd selenium\Scripts activate  // 경로 앞에 (selenium) 이 붙었으면 가상환경에 들어왔다는 뜻이다. pip install selenium  // selenium 설치   3. 구글에서 검색…

Read More
PYTHON

파이썬 GUI 프로그래밍 (여러 이미지 합치기 프로그램) 1 – 나도코딩

    파이썬 코딩 무료 강의 (활용편2) – GUI 프로그래밍을 배우고 ‘여러 이미지 합치기’ 프로그램 [나도코딩] (youtube.com) https://www.youtube.com/watch?v=bKPIcoou9N8   [나도코딩] 파이썬 활용편2 GUI 프로그래밍 – 소개 https://nadocoding.tistory.com/9   gui_project.zip gui_basic.zip     1_create_frame.py 2_button.py 3_label.py 4_text_entry.py 5_listbox.py 6_checkbox.py 7_radiobutton.py 8_combobox.py 9_progressbar.py 10_menu.py 11_messagebox.py 12_frame.py 13_scrollbar.py 14_grid.py 15_quiz.py       1_create_frame.py   from tkinter import * root = Tk() root.title(“Nado GUI”) root.geometry(“640×480”) # 가로 * 세로 #root.geometry(“640×480+300+100”) # 가로 * 세로 + x좌표 + y좌표 root.resizable(True, False) # x(너비), y(높이) 값 변경 불가 (창 크기 변경 불가) root.mainloop()    …

Read More