일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- LIST
- OpenCV
- windows forms
- 기타 연주
- 채보
- Visual Studio
- JSON
- C++
- C
- YOLO
- Selenium
- mysql
- Python
- 오류
- label
- SSH
- 프로그래머스
- Linux
- Numpy
- Docker
- pytorch
- paramiko
- 컨테이너
- error
- VS Code
- ubuntu
- pandas
- C#
- pip
- 핑거스타일
- Today
- Total
목록분류 전체보기 (322)
기계는 거짓말하지 않는다
설치 pip install selenium WebDriver Access 방법 from selenium import webdriver driver_path = "./driverDirectory" driver = webdriver.Firefox(driver_path) # 위와 동일 ''' webdriver.FirefoxProfile webdriver.Chrome webdriver.ChromeOptions webdriver.Ie webdriver.Opera webdriver.PhantomJS webdriver.Remote(driver_path) webdriver.DesiredCapabilities webdriver.ActionChains webdriver.TouchActions webdriver.Proxy ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/lTIrn/btranaGiWo5/PbsFJExcREPZQUt654Kys1/img.png)
matplotlib을 사용할 때 한글이 깨지는 경우가 있다. import matplotlib.pyplot as plt import numpy as np a = np.linspace(1, 10, 20) fig = plt.gcf() fig.canvas.set_window_title('확인') plt.plot(a) plt.title("한글 확인") plt.xlabel("엑스 라벨") plt.ylabel("와이 라벨") plt.show() 사용 가능한 폰트 확인 matplotlib.font_manager로 확인 import matplotlib.font_manager as fm # list로 모든 폰트 확인 fl = [font.name for font in fm.fontManager.ttflist] print(f..
설치 Linux apt-get install python-bs4 (파이썬 2의 경우) apt-get install python3-bs4 (파이썬 3의 경우) Other easy_install beautifulsoup4 pip install beautifulsoup4 pip install bs4 파서 설치 lxml 설정에 따라 다음 명령 중 하나로 lxml을 설치 apt-get install python-lxml easy_install lxml pip install lxml html5lib HTML을 구문 분석 하는 순수 Python html5lib 파서. 설정에 따라 다음 명령 중 하나로 html5lib를 설치 apt-get install python-html5lib easy_install html5li..
Selenium 다양한 브라우저, 플랫폼에서 웹 애플리케이션을 검증하는 데 사용되는 오픈 소스 자동화 테스트 프레임워크이다. Java, C#, Python 등과 같은 여러 프로그래밍 언어를 사용하여 Selenium 테스트 스크립트를 만들 수 있다. Selenium Software는 단일 도구가 아니라 소프트웨어 제품군이다. Install: pip install selenium Import: import selenium Webdriver: from selenium import webdriver 장점 1. Python, Node.js, Java 이외의 다른 프로그래밍 언어에서도 실행 가능 2. 크롬, 인터넷 익스플로러, 파이어폭스와 같은 주요 웹 브라우저 제어 가능 3. AJAX, PJAX 요청 쉽게 처리 ..
웹 크롤링(Crawling) 웹 사이트에 있는 특정 정보를 추출하는 기술을 말한다. 다양한 웹 사이트에서 Text, Image, Audio 등을 추출할 수 있다. HTML 구조를 분석하고 로그인 처리 등이 필요하다. 아래는 Selenium과 BeautifulSoup를 이용한 크롤링 예이다. 네이버 영화 순위 from selenium import webdriver from bs4 import BeautifulSoup driver_path = './chromedriver' driver = webdriver.Chrome(driver_path) driver.get('https://movie.naver.com/movie/sdb/rank/rmovie.nhn') driver.implicitly_wait(3) html..
VS Code에서 pip install 명령어를 실행할 때 이러한 오류를 보는 경우가 있다. Fatal error in launcher: Unable to create process using "경로" 한글로 된 디렉터리 또는 경로를 찾을 수 없어서 아니면 가상환경을 사용하고 있을 때 볼 수 있다. 해결법 Cmd에서 python -m pip install --upgrade pip 실행 또는 VS Code 상에서 python -m pip install 명령어 실행
Trigger(트리거) DB에서의 트리거란 어떤 테이블에 대한 쿼리 문이 종료됐을 때 자동으로 실행되는 쿼리를 뜻한다. 예시 테이블 CREATE TABLE id_table ( idx INT UNSIGNED auto_increment, id varchar(100) unique not null, exp INT NOT NULL, PRIMARY KEY (idx) ); CREATE TABLE point_table ( idx INT UNSIGNED auto_increment, id varchar(100) NOT NULL, point_amount INT NOT NULL, PRIMARY KEY (idx), FOREIGN KEY (id) REFERENCES id_table(id) ); 트리거 생성 CREATE TRIGG..
C# Windows Forms에 버튼, 텍스트 박스 등 여러 컨트롤에 이벤트를 등록할 수 있다. 하나 또는 그 이상의 이벤트 등록이 가능하다. Event 정의 private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Event Method Name: button1_Click"); } private void Message1(object sender, EventArgs e) { MessageBox.Show("Event Method Name: Message1"); } private void Message2(object sender, EventArgs e) { MessageBox.Show("Event Method Name: Message..