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
Wordpress

워드프레스 플러그인 정리

  고전 편집기 플러그인 TinyMCE Advanced (편집기에 기능 추가) Ultimate Member (회원가입 로그인화면 변경) Category Order and Taxonomy Terms Order (카테고리 순서 변경) Nav Menu Roles (로그인 로그아웃 메뉴 추가) Enlighter – Customizable Syntax Highlighter (소스코드 보기 좋게 해줌) Limit Login Attempts Reloaded (로그인 시도 제한) Favicon by RealFaviconGenerator (파비콘 자동 설정) WP Extra File Types (업로드할 파일 형식 허용) UpdraftPlus – Backup/Restore (백업 복구)       고전 편집기 플러그인   대시보드 – 설정 – 쓰기 Default editor for all users – Classic Editor (기본 에디터 설정) Allow users…

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
Android

Coding in Flow (codinginflow.com)

    Slide Animation Between Activites Press Back Again to Exit Swipe Close Activity with Slidr Library AndroidViewAnimations Easily Create Animations with the AndroidViewAnimation Library Drawable Animations   https://codinginflow.com/     1. Slide Animation Between Activites   https://codinginflow.com/tutorials/android/slide-animation-between-activities   # Slide Animation Between Activites – Android Studio Tutorial (youtube.com) https://www.youtube.com/watch?v=0s6x3Sn4eYo     # slide_in_left.xml <set xmlns:android=”http://schemas.android.com/apk/res/android”> <translate android:duration=”@android:integer/config_mediumAnimTime” android:fromXDelta=”-100%p” android:toXDelta=”0″ /> </set>     # slide_in_right.xml <set xmlns:android=”http://schemas.android.com/apk/res/android”> <translate android:duration=”@android:integer/config_mediumAnimTime” android:fromXDelta=”100%p” android:toXDelta=”0″ /> </set>   # slide_out_left.xml <set xmlns:android=”http://schemas.android.com/apk/res/android”> <translate android:duration=”@android:integer/config_mediumAnimTime” android:fromXDelta=”0″ android:toXDelta=”-100%p” /> </set>   # slide_out_right.xml <set xmlns:android=”http://schemas.android.com/apk/res/android”>…

Read More
Android

Dialogs (android developers)

  # Dialogs https://developer.android.com/guide/topics/ui/dialogs#java         # AlertDialog A dialog that can show a title, up to three buttons, a list of selectable items, or a custom layout. # DatePickerDialog or TimePickerDialog A dialog with a pre-defined UI that allows the user to select a date or time.       Creating a Dialog Fragment   public class FireMissilesDialogFragment extends DialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { // Use the Builder class for convenient dialog construction AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage(R.string.dialog_fire_missiles) .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() { public…

Read More
Android

ViewPager2 (android developers)

  Slide between fragments using ViewPager2 https://developer.android.com/training/animation/screen-slide-2#java   Migrate from ViewPager to ViewPager2 https://developer.android.com/training/animation/vp2-migration#java       Slide between fragments using ViewPager2     Create the views <!– fragment_screen_slide_page.xml –> <ScrollView xmlns:android=”http://schemas.android.com/apk/res/android” android:id=”@+id/content” android:layout_width=”match_parent” android:layout_height=”match_parent” > <TextView style=”?android:textAppearanceMedium” android:padding=”16dp” android:lineSpacingMultiplier=”1.2″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text=”@string/lorem_ipsum” /> </ScrollView>   Create the fragment import androidx.fragment.app.Fragment; … public class ScreenSlidePageFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return (ViewGroup) inflater.inflate( R.layout.fragment_screen_slide_page, container, false); } }   Add a ViewPager2 <!– activity_screen_slide.xml –> <androidx.viewpager2.widget.ViewPager2 xmlns:android=”http://schemas.android.com/apk/res/android” android:id=”@+id/pager” android:layout_width=”match_parent” android:layout_height=”match_parent” />  …

Read More