일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 데이터전문기관
- mglearn
- 웹 용어
- web
- KNeighborsClassifier
- broscoding
- postorder
- paragraph
- classification
- vscode
- web 개발
- Keras
- discrete_scatter
- 결합전문기관
- 자료구조
- 대이터
- cudnn
- CES 2O21 참가
- web 용어
- java역사
- bccard
- pycharm
- html
- tensorflow
- inorder
- 머신러닝
- C언어
- web 사진
- CES 2O21 참여
- 재귀함수
- Today
- Total
목록[IT]/python (23)
bro's coding
!pip install selenium

A-Z from ConsumerReports.org www.consumerreports.org import requests from bs4 import BeautifulSoup response = requests.get("https://www.consumerreports.org/cro/a-to-z-index/products/index.htm") data = BeautifulSoup(response.text,"html.parser") # 속성 # attr = {class_:"products-a-z__results__item"} subdata= data.find_all("a",class_="products-a-z__results__item") for sub in subdata: # None 제거 if sub..

import requests from bs4 import BeautifulSoup response = requests.get("http://naver.com") data = BeautifulSoup(response.text,"html.parser") # id가 u_skip인 것들을 모두 찾음 print(data.find(id="u_skip")) ''' 뉴스스탠드 바로가기 주제별캐스트 바로가기 타임스퀘어 바로가기 쇼핑캐스트 바로가기 로그인 바로가기 ''' import requests from bs4 import BeautifulSoup response = requests.get("http://naver.com") data = BeautifulSoup(response.text,"html.parser") # ..

import requests from bs4 import BeautifulSoup # naver에 get request response = requests.get("http://naver.com") # html parse data = BeautifulSoup(response.text,"html.parser") print(data.title) print(data.title.string) ''' NAVER NAVER ''' print(data.title.parent) ''' ''' print(data.head.children) # for i in data.head.children: print(i) ''' NAVER ''' print(data.div) # 뉴스스탠드 바로가기 주제별캐스트 바로가기 타임스퀘어 바..

# beautiful soap install !pip install bs4

이 포스팅은 Qt Designer로 제작한 ui를 python soure code로 변환 하는 방법을 설명합니다. 1. ui 제작 2. anaconda prompt에서 명령어 입력 2-1. 제작한 .ui 파일이 있는 위치로 이동 !cd 2-2. pyuic5 명령 ! pyuic5 "" -o "" -x > 무소식이 희소식이다.(잘 처리되면 아무 리액션이 없음) 완료 확인 위 작업을 한 위치에 .py 파일이 생성되었는지 확인 python.pyQt5.QT designer with PyCharm 이 글은 [Qt designer]를 [PyCharm]에 연동하는 방법을 총 3단계로 구분해 설명한다. 1. install pyqt5 !pip install pyqt5 ''' Collecting pyqt5 Downloadi..

이 포스팅은 [Qt designer]를 [PyCharm]에 연동하는 방법을 총 3단계로 구분해 설명합니다. 1. install pyqt5 !pip install pyqt5 ''' Collecting pyqt5 Downloading PyQt5-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (56.9 MB) |████████████████████████████████| 56.9 MB 3.3 MB/s Collecting PyQt5-sip=12.8 Downloading PyQt5_sip-12.8.1-cp38-cp38-win_amd64.whl (63 kB) |████████████████████████████████| 63 kB ... Installing ..
import sys # 1. sys.stdin.readline() # 이 메소드는 입력한 한 라인을 interable한 컨테이너에 저장한다. # for x in sys.stdin.readline(): # print(x) # **input # 12 3 4 5 # **output # 12 # 3 # 4 # 5 # 1 # 2 # # 3 # # 4 # # 5 # 띄어쓰기와 \n까지 포함하므로 split()을 이용하는 것이 좋다. # for x in sys.stdin.readline().split(): # print(x) # **input # 12 3 4 5 # **output # 12 # 3 # 4 # 5 # 2. sys.stdin # 여러 줄을 입력받고 싶으면 sys.stdin을 이용하는 것이 좋다. # fo..