일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- spring boot redis
- Selenium
- Netty
- Airflow
- vue.js
- Hibernate
- Docker Compose
- docker
- weblogic 10
- WebLogic
- JPA
- cassandra
- grafana
- coalesce
- Spring Open Feign
- redis
- Redis Sentinel
- RabbitMQ
- argo cd
- ChannelPipeline
- KAFKA
- jmeter
- mybatis
- netflix oss
- MySQL
- docker compose mysql
- docker-compose
- QueryDSL
- spring boot
- spring cloud
- Today
- Total
목록python (7)
IT.FARMER
centos tesseract, open cv 사용시 오류 리포팅 ImportError: libSM.so.6: cannot open shared object file: No such file or directory sudo yum install libXext libSM libXrender 를 설치해준다. centos tesseract, open cv 사용시 오류 리포팅 [skan@ae-report-crawler]$ python3.6 application.py dev Traceback (most recent call last): File "application.py", line 4, in from com.aereport.scraping.batch.schedulers.common_scheduler impor..
selenuim 과 requests 의 비교 분석 selenium selenium 이란? selenium은 주로 웹테스트를 하는데 이용하는 프레임 워크로 알려져 있다. Webdriver모듈을 이용하여 운영체제에 설치된 크롬및 파이어폭스 등의 브라우저를 제어한다. 장점 requests 와 다르게 사용자가 동작하는 것처럼 시나리오를 통해 동작이 가능하며, 비동기적으로 불러오는 DOM 및 마우스클릭 및 Over 로 생기는 HTML , 비동기 통신으로 가자오고 javascript에 의해 동적으로 생성되는 DOM 을 랜더링 하여 모두 보여주며 접근이 가능하다. 이에 강력한 웹매크로를 만들어 낼수 있다. 단점 requests에 비해 시간이 오래걸리는 단점이 있으며, 멀티로 생성시 브라우저간의 세션공유가 되지 않는다..
selenium 웹크롤링 1. selenium 을 활용한 웹크롤링 방법 예제 def login(userId, user_password): """ 페이지 로그인 :param userId: :param user_password: :return: """ oauth_login_url = 'https://nid.naver.com/nidlogin.login?mode=form&url=https%3A%2F%2Fwww.naver.com' # 페이지 접속 _driver.get(oauth_login_url) # Element Find userIdElem = _driver.find_element_by_id("id") userPasswordElem = _driver.find_element_by_id("pw") # Value S..
python datetime 사용법 import datetime # UTC datetime print(datetime.datetime.utcnow()) # result : 2019-06-21 02:38:05.099542 # 포멧 변경 print(datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%H:%S.%f')[:-2]) # result : 2019-06-21 02:02:05.0995 # 오늘 날짜 print(datetime.date.today()) # result : 2019-06-21 # 오늘 날짜 타입 확인 print(type(datetime.date.today())) # result # 오늘 날짜 타입 Str 변환 print(datetime.date.toda..
python 기본 함수 time import time # 내장 함수 time test # Epoch 이후의 현재 시간을 초 단위로 반환합니다. # 시스템 클럭이 제공하는 경우 1 초가있을 수 있습니다. print(time.time()) # Epoch 이후 초를 현지 시간을 나타내는 시간 튜플로 변환하십시오. # parameter : '초'가 전달되지 않으면 현재 시간을 변환하십시오. print(time.localtime(time.time())) # > time.struct_time(tm_year=2019, tm_mon=6, tm_mday=21, tm_hour=11, tm_min=31, tm_sec=20, tm_wday=4, tm_yday=172, tm_isdst=0) # 시간 튜플을 문자열로 변환합니다 ..
python random 함수 예제 import random # float 랜덤 숫자 0~1 사이 _random_data = random.random() print(_random_data) # int type 랜덤 _random_data = random.randint(1, 10) print(_random_data) # 0 이상 20이하의 3의 배수 (0포함) _random_data = random.randrange(0, 20, 3) print(_random_data) # float 소숫점 단위 랜덤 _random_data = random.uniform(0.1, 0.3) print(_random_data) # 랜덤으로 하나 선택 _random_data = random.choice([1, 2, 3, 4, 5..
1. Python 설치 표준 yum 저장소는 아직 최신 Python 릴리스를 제공하지 않으므로 필요한 RPM 패키지를 제공하는 IUM (Upstream Stable을 사용하는 인라인)이라는 추가 저장소를 설치해야합니다. 설치방법 : > sudo yum install https://centos7.iuscommunity.org/ius-release.rpm 이제 Python 3.6을 설치합니다. > sudo yum install python36u 설치된 버젼 확인은 아래와 같이 합니다. > python3.6 -V 다음으로, Python 패키지와 일부 개발 패키지를 관리하는 pip입니다. > sudo yum install python36u-pip > sudo yum install python36u-devel 여..